Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JWTClaims = &jwt.StandardClaims{}
Functions ¶
func GenerateToken ¶
func GenerateToken(claim *TokenClaims) string
func GetClaimsOfJWT ¶
func GetClaimsOfJWT() *jwt.StandardClaims
func VerifyToken ¶
Verify the token signature and expire dates without any explicit claims
func VerifyTokenWithClaim ¶
Verify the token signature and expire dates with a claim
Types ¶
type TokenClaims ¶
Click to show internal directories.
Click to hide internal directories.