Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractClaim ¶
ExtractClaim extracts claims from given token
Types ¶
type CustomClaims ¶
type JWTHandler ¶
type JWTHandler struct { Sub string Exp string Iat string Aud []string Role string SigninKey string Log *logger.Logger Token string Timout int }
JWTHandler ...
func (*JWTHandler) ExtractClaims ¶
func (jwtHandler *JWTHandler) ExtractClaims() (jwt.MapClaims, error)
ExtractClaims ...
func (*JWTHandler) GenerateAuthJWT ¶
func (jwtHandler *JWTHandler) GenerateAuthJWT() (access, refresh string, err error)
GenerateAuthJWT ...
Click to show internal directories.
Click to hide internal directories.