Documentation ¶
Overview ¶
Package jwt provides token-related functionality
Index ¶
Constants ¶
View Source
const ( Authorization = "Authorization" TokenType = "Bearer" Expiration = 86400 )
JWT related constants
Variables ¶
This section is empty.
Functions ¶
func EncodeTokenRequest ¶
EncodeTokenRequest builds the token request from the user id and api secret
func FromHeaderVal ¶
FromHeaderVal will remove the JWTTokenType if it prepends the string s, but is also safe to use if s is just the token
func VerifyTokenRequest ¶
Verify TokenRequest vaidates the request against the user id and api secret
Types ¶
Click to show internal directories.
Click to hide internal directories.