Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AuthHeaderKey is a header key used for authorization
AuthHeaderKey = "Authorization"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { Username string `json:"username"` jwt.StandardClaims }
Claims struct used as StandardClaims for generating JWT token
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
TokenResponse is a response provided by the /login endpoint
Click to show internal directories.
Click to hide internal directories.