Documentation ¶
Index ¶
Constants ¶
View Source
const ( Issuer = "zo.auth.service" TokenType = "accessToken" UserTokenType = "userToken" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthClaims ¶
type AuthClaims struct { *jwt.StandardClaims TokenType string }
type UserTokenClaims ¶
type UserTokenClaims struct { *jwt.StandardClaims TokenType string UserId int }
func CreateUserTokenClaims ¶
func CreateUserTokenClaims(userToken string) (*UserTokenClaims, error)
Click to show internal directories.
Click to hide internal directories.