Documentation ¶
Index ¶
- func CreateRefreshToken(secret string, method string, token string) (string, error)
- func CreateToken(secret string, method string, claims jwt.MapClaims, expire int) (string, error)
- func DefaultJwtLogin(path string, secret string, signingMethod string, refreshToken bool, ...) routes.Route
- func NewJwt(env *configs.Env, signingMethod string, whitelist string) middlewares.Middleware
- func NewJwtLogin(path string, userField string, passwordField string, secret string, ...) routes.Route
- func NewJwtRefresh(path string, secret string, signingMethod string, expire int) routes.Route
- func ValidateRefreshToken(secret string, method string, tokenString string) (jwt.MapClaims, error)
- func ValidateToken(secret string, signing string, bearerToken string) (jwt.MapClaims, error)
- type FindUserByUsernameAndPassword
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRefreshToken ¶ added in v1.0.3
func CreateToken ¶ added in v1.0.3
func DefaultJwtLogin ¶
func NewJwt ¶
func NewJwt(env *configs.Env, signingMethod string, whitelist string) middlewares.Middleware
func NewJwtLogin ¶
func NewJwtRefresh ¶
func ValidateRefreshToken ¶ added in v1.0.3
Types ¶
Click to show internal directories.
Click to hide internal directories.