Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasRequiredClaims ¶
HasRequiredClaims returns true if there is at least one scope
Types ¶
type Token ¶
type Token struct { // Scopes controlling access booking system Scopes []string `json:"scopes"` jwt.RegisteredClaims }
Token represents a token used for login or booking
type TokenInBody ¶
type TokenInBody struct {
Token string `json:"token"`
}
TokenInBody represents a token marshalled into a string
Click to show internal directories.
Click to hide internal directories.