Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StandardFields ¶
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
func (*Token) GenerateCustomToken ¶
func (*Token) GenerateTTLToken ¶
<type>.<ttl>.<hash> no encryption this function will generate a token which only conatains a ttl, best used for simple and lightweight tokens
func (*Token) ParseToken ¶
this function is used to validate tokens with cutom fields. it takes in the token and the destination struct, it will decode the token fields into the token
func (*Token) ValidateTTLToken ¶
Click to show internal directories.
Click to hide internal directories.