Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTokenInvalid = errors.New("token 无效") ErrUserDisable = errors.New("用户被禁用") )
Functions ¶
func NewJwtToken ¶
func SetDisable ¶
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService( client *ent.Client, c cache.Cache, pub *rsa.PublicKey, pri *rsa.PrivateKey, ) *AuthService
func (*AuthService) Auth ¶
func (a *AuthService) Auth(ctx context.Context, t yggdrasil.ValidateToken, tmpInvalid bool) (*model.TokenClaims, error)
Click to show internal directories.
Click to hide internal directories.