Optional
token: null | stringThe initial token
Optional
temporary: booleanIf the token should be saved temporary or permanently
The origin of the token
Indicates if the token should keep temporary only or should be persisted for later sessions
The actual stored token
Static
GLOBALStatic
WEB_Static
hmacCalculates a Keyed-Hash Message Authentication Code (HMAC) from a message and a key.
Get the stored token
The token or undefined, if no token is available
Protected
_saveProtected
Use the underlying storage implementation to save the token
Use TokenStorage#saveToken instead
The origin where the token belongs to
The initial token
If the token should be saved temporary or permanently
Protected
saveUse the underlying storage implementation to save the token
The origin where the token belongs to
The initial token
If the token should be saved temporary or permanently
Derives a resource token from the stored origin token and signs the resource with the generated resource token
A resource token which can only be used to access the specified resource
The resource which will be accessible with the returned token
Sign the given resource with a token, if sign is false the resource will only be encoded to a path
Static
createStatic
parseGenerated using TypeDoc
The origin where the token belongs to