Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWT ¶
func GetIDFromJWT ¶
Types ¶
type CustomClaims ¶
type CustomClaims struct {
ObjectId string `json:"objectId"`
Username string `json:"username"`
Email string `json:"email"`
Roles []string `json:"roles"`
jwt.RegisteredClaims
}
Struct for custom claims
func ParseJWT ¶
func ParseJWT(tokenString string) (*CustomClaims, error)
Click to show internal directories.
Click to hide internal directories.