Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomClaims ¶
type CustomClaims struct { jwt.StandardClaims Username string `json:"username,omitempty"` Roles string `json:"roles,omitempty"` }
func GetClaimsFromContext ¶
func GetClaimsFromContext(jwtSecret string, ctx context.Context) *CustomClaims
Click to show internal directories.
Click to hide internal directories.