Skip to main content
Version: 3.x

TokenStorageProvider

This interface can be implemented by the hosting app, and set in the options it should be a wrapper around access to a secure storage solution if

Ionic Identity Vault is not being used.

Properties#

clear#

Clear storage.

Usage#

storage.clear()

getAccessToken#

Get the saved access token.

Usage#

storage.getAccessToken()

Param#

Optional token name, only used when multiple tokens are required (Azure specific feature).

getAuthResponse#

Get the full auth result.

Usage#

storage.getAuthResponse()

getIdToken#

Get the id token.

Usage#

storage.getIdToken()

getRefreshToken#

Get the saved refresh token.

Usage#

storage.getRefreshToken()

setAccessToken#

Save the access token.

Usage#

storage.saveAccessToken("123abcString", "mytoken")

Param#

Optional token name, only used when multiple tokens are required (Azure specific feature).

setAuthResponse#

Save the full auth response.

Usage#

storage.setAuthResponse("OK")

setIdToken#

Save the id token.

Usage#

storage.setIdToken("123abcString")

setRefreshToken#

Save the refresh token.

Usage#

storage.setRefreshToken("123abcString")