Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { UserID string `json:"userid"` Roles []string `json:"roles"` UserName string `json:"username"` jwt.StandardClaims }
Claims represents the data for a user login
type ErrCookieNotFound ¶
type ErrCookieNotFound struct{}
ErrCookieNotFound is returned when the login cookie is not found.
func (ErrCookieNotFound) Error ¶
func (e ErrCookieNotFound) Error() string
type ErrTokenInvalid ¶
type ErrTokenInvalid struct{}
ErrTokenInvalid is returned when the login token is invalid.
func (ErrTokenInvalid) Error ¶
func (e ErrTokenInvalid) Error() string
type ErrTokenSignatureInvalid ¶
type ErrTokenSignatureInvalid struct{}
ErrTokenSignatureInvalid is returned when the login token signature is invalid.
func (ErrTokenSignatureInvalid) Error ¶
func (e ErrTokenSignatureInvalid) Error() string
Click to show internal directories.
Click to hide internal directories.