Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UT = UserTokens{}
UT is a user's token methods
Functions ¶
func EncodePayload ¶
EncodePayload encodes the token payload using gob
func ExtractPayload ¶
ExtractPayload decodes the token payload
Types ¶
type TP ¶
type TP map[string]interface{}
TP type stands for 'Token Payload' that uses the map[string]interface{} as the custom token payload structure
type UserTokens ¶
type UserTokens struct {
Token map[interface{}][]byte
}
UserTokens is a users token requests stored in memory storage
func (*UserTokens) Add ¶
func (t *UserTokens) Add(userName string, encBytes []byte)
Add insert the new token request to the 'UserTokens' map
func (*UserTokens) Remove ¶
func (t *UserTokens) Remove(userName string, encBytes []byte)
Remove any single stored token from the 'UserTokens' map
Click to show internal directories.
Click to hide internal directories.
The timaan package is a token generator for your user's authentication process in your app whether it's a WEB, CLI, or Mobile applications.