Documentation
¶
Index ¶
Constants ¶
View Source
const ClaimsContextKey contextKey = "claims"
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
Types ¶
type Claims ¶
type Claims struct {
UserID string `json:"user_id"`
Role string `json:"role"`
jwt.RegisteredClaims
}
func ParseToken ¶
Click to show internal directories.
Click to hide internal directories.