Interface: TokenStorage

olympe.auth. TokenStorage

Methods


clearToken()

Clears any stored token


<abstract> getToken(callback)

Gets the current token

Parameters:
Name Type Description
callback function

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>

Type Definitions


SetTokenCallback(success)

Parameters:
Name Type Description
success boolean

Whether the token has been successfully stored