Documentation ¶
Index ¶
- func Claims(r *http.Request) (*claims, error)
- func ClaimsFromToken(token string) (*claims, error)
- func GetAudience(r *http.Request) (string, error)
- func GetToken(r *http.Request) string
- func GetTokenWebsocket(r *http.Request) string
- func GetUserEmail(r *http.Request) (string, error)
- func GetUserID(r *http.Request) (string, error)
- func ValidateOnParse(yes bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimsFromToken ¶
ClaimsFromToken creates claims from given token
func GetAudience ¶
GetAudience get user email address from request while registering action/user it is useful
func GetTokenWebsocket ¶
GetTokenWebsocket makes a token from a request
func GetUserEmail ¶
GetUserEmail get user email address from request while registering action/user it is useful
func ValidateOnParse ¶
func ValidateOnParse(yes bool)
ValidateOnParse will say whether the token should be validated when the token is parsed Default is yes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.