Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { ID uuid.UUID `json:"id"` Email string `json:"email,omitempty"` Expiration time.Time `json:"expires,omitempty"` }
Claims represents data signed by server and used for authentication.
type Token ¶
Token represents authentication data structure.
func FromBase64URLString ¶
FromBase64URLString creates Token instance from base64URLEncoded string representation.
Click to show internal directories.
Click to hide internal directories.