Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Credentials ¶
type JwtCustomClaims ¶
type JwtCustomClaims struct { Name string `json:"name"` Admin bool `json:"admin"` jwt.RegisteredClaims }
JwtCustomClaims are custom claims extending default ones. See https://github.com/golang-jwt/jwt for more examples
type LoginPayload ¶
type LoginPayload struct {
User Credentials `json:"user"`
}
type UserPayload ¶
Click to show internal directories.
Click to hide internal directories.