二阶段差不多

This commit is contained in:
2026-06-01 19:46:51 +08:00
parent 9e50d05e71
commit 4e233c82b4
34 changed files with 1631 additions and 67 deletions
+9
View File
@@ -0,0 +1,9 @@
package auth
// Provider 定义外部认证接口
type Provider interface {
// Authenticate 验证外部凭据,返回邮箱地址
Authenticate(credentials map[string]string) (email string, err error)
// Name 返回提供者名称
Name() string
}