Versions in this module Expand all Collapse all v1 v1.0.1 Mar 15, 2020 v1.0.0 Mar 15, 2020 Changes in this version + var ErrNS = errorx.NewNamespace("error.api.user") + var ErrNSSignIn = ErrNS.NewSubNamespace("signin") + var ErrSignInOther = ErrNSSignIn.NewType("other") + var ErrSignInUnsupportedAuthType = ErrNSSignIn.NewType("unsupported_auth_type") + type AuthService struct + func NewAuthService(tidbForwarder *tidb.Forwarder) *AuthService + func (s *AuthService) MWAuthRequired() gin.HandlerFunc + func (s *AuthService) Register(r *gin.RouterGroup) + type TokenResponse struct + Expire time.Time + Token string