Class: TokenStorage

olympe.auth.impl. TokenStorage

Default token storage implementation


new TokenStorage(keyValueManager, logger, appNameToken)

Parameters:
Name Type Description
keyValueManager olympe.localstorage.KeyValueManager
logger olympe.logging.Channel
appNameToken olympe.auth.AppNameToken
Implements:

Members


<static, constant> KEY :string

Storage key

Type:
  • string

Methods


clearToken()

Clears any stored token

Implements:

getToken(callback)

Gets the current token

Parameters:
Name Type Description
callback function
Implements:

setToken(token [, callback])

Stores a token

Parameters:
Name Type Argument Description
token olympe.auth.Token | string

Token instance to store or serialized token

callback olympe.auth.TokenStorage.SetTokenCallback <optional>
Implements: