Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTAccessClaims ¶
type JWTAccessClaims struct { jwt.StandardClaims Scopes []string `json:"perm,omitempty"` }
JWTAccessClaims jwt claims
type JWTAccessGenerate ¶
type JWTAccessGenerate struct { SignedKeyID string SignedKey []byte SignedMethod jwt.SigningMethod }
JWTAccessGenerate generate the jwt access token
func NewJWTAccessGenerate ¶
func NewJWTAccessGenerate(kid string, key []byte, method jwt.SigningMethod) *JWTAccessGenerate
NewJWTAccessGenerate create to generate the jwt access token instance
Click to show internal directories.
Click to hide internal directories.