datarhei-dragonfork-core/http/api/jwt.go

12 lines
309 B
Go
Raw Normal View History

2022-05-13 13:26:45 -04:00
package api
// JWT is the JWT token and its expiry date
type JWT struct {
AccessToken string `json:"access_token" jsonschema:"minLength=1"`
RefreshToken string `json:"refresh_token" jsonschema:"minLength=1"`
}
type JWTRefresh struct {
AccessToken string `json:"access_token" jsonschema:"minLength=1"`
}