AccessTokenCache interface
Provides a cache for an AccessToken that was that was returned from a TokenCredential.
Methods
get |
Returns the cached AccessToken or undefined if nothing is cached. |
set |
Sets the cached token. |
Method Details
getCachedToken()
Returns the cached AccessToken or undefined if nothing is cached.
function getCachedToken(): undefined | AccessToken
Returns
undefined | AccessToken
setCachedToken(undefined | AccessToken)
Sets the cached token.
function setCachedToken(accessToken: undefined | AccessToken)
Parameters
- accessToken
-
undefined | AccessToken
The AccessToken to be cached or null to clear the cached token.