Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitScopes ¶
SplitScopes simple helper to split and return scopes as an array
Types ¶
type JSONTime ¶
JSONTime represents a time which has been parsed from a epoch seconds
func (*JSONTime) UnmarshalJSON ¶
UnmarshalJSON parse the epoch unix time
type Payload ¶ added in v1.1.0
type Payload struct { Sub string `json:"sub"` TokenUse string `json:"token_use"` Scope string `json:"scope"` AuthTime JSONTime `json:"auth_time"` Issuer string `json:"iss"` Expires JSONTime `json:"exp"` IssuedAt JSONTime `json:"iat"` Version int `json:"version"` Jti string `json:"jti"` ClientID string `json:"client_id"` }
Payload base JWT payload
Click to show internal directories.
Click to hide internal directories.