Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func ThirdPartyLoginEnabled ¶
func ThirdPartyLoginEnabled() *enabledStatus
Types ¶
type Claims ¶
type Claims struct { Name string `json:"name"` Email string `json:"email"` UID string `json:"uid"` PreferredUsername string `json:"preferred_username"` FederatedClaims FederatedClaims `json:"federated_claims"` jwt.StandardClaims }
type FederatedClaims ¶
type User ¶
type User struct { Uid string `json:"uid"` Token string `json:"token"` Email string `json:"email"` Phone string `json:"phone"` Name string `json:"name"` Account string `json:"account"` IdentityType string `json:"identityType"` }
func LocalLogin ¶
func LocalLogin(args *LoginArgs, logger *zap.SugaredLogger) (*User, error)
Click to show internal directories.
Click to hide internal directories.