Documentation ¶
Index ¶
Constants ¶
View Source
const KeyUserId = "USER_ID"
Variables ¶
Functions ¶
func CreateToken ¶
creating, signing, and encoding a JWT token using the HMAC signing
Types ¶
type CustomClaims ¶
type CustomClaims struct { UserId uint jwt.StandardClaims }
func ParseToken ¶
func ParseToken(tokenString string) (claims *CustomClaims, err error)
parsing and validating a token using the HMAC signing
Click to show internal directories.
Click to hide internal directories.