Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
Token is the jwt that will be used by the client in the Authorization header to send in every request to the api server, every request except for the auth request which is used to request a new token.
For more information see: https://jwt.io/
func New ¶
New expects a raw token as string. It will try to decode it and return an error on error. Once decoded it will retrieve the expiry date and return a Token struct with the RawToken and ExpiryDate set.
func (*Token) GetAuthenticationHeaderValue ¶
GetAuthenticationHeaderValue returns the authentication header value value including the Bearer prefix
Click to show internal directories.
Click to hide internal directories.