package
Version:
v0.0.0-...-0cfb223
Opens a new window with list of versions in this module.
Published: Jan 19, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Request struct {
Subject string `json:"sub"`
Scope []string `json:"scope"`
ExpiresIn string `json:"expiresIn"`
}
Request represents the body of a token creation request
Duration parses ExpiresIn and returns it as time.Duration
ToClaims returns jwt.Claims based on the request data
type Response struct {
Token string `json:"token"`
Expires int64 `json:"expires"`
}
Response represents the body of a token creation response
Source Files
¶
Click to show internal directories.
Click to hide internal directories.