2026-04-27 02:29:42 +08:00

10 lines
315 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package auth 实现 user-service 的认证、三方登录、密码登录和 refresh session 用例。
package auth
import "hyapp/pkg/xerr"
func authFailed() error {
// 认证失败统一 reason阻断账号、密码和 provider_subject 枚举。
return xerr.New(xerr.AuthFailed, "authentication failed")
}