Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuardianUser ¶
type GuardianUser struct { UserID float64 `json:"userId"` Username string `json:"sub"` Email string `json:"email"` Roles []interface{} `json:"roles"` Expiration float64 `json:"exp"` IssuedAt float64 `json:"iat"` jwt.RegisteredClaims }
func ValidateUser ¶
func ValidateUser(secret, tokenString string) (*GuardianUser, error)
Click to show internal directories.
Click to hide internal directories.