Editar

Compartilhar via


TokenCache class

Token cache manager

Constructors

TokenCache(BrowserConfiguration, BrowserCacheManager, Logger, ICrypto)

Properties

isBrowserEnvironment

Methods

loadExternalTokens(SilentRequest, ExternalTokenResponse, LoadTokenOptions)

API to load tokens to msal-browser cache.

Constructor Details

TokenCache(BrowserConfiguration, BrowserCacheManager, Logger, ICrypto)

new TokenCache(configuration: BrowserConfiguration, storage: BrowserCacheManager, logger: Logger, cryptoObj: ICrypto)

Parameters

configuration
BrowserConfiguration
logger

Logger

cryptoObj

ICrypto

Property Details

isBrowserEnvironment

isBrowserEnvironment: boolean

Property Value

boolean

Method Details

loadExternalTokens(SilentRequest, ExternalTokenResponse, LoadTokenOptions)

API to load tokens to msal-browser cache.

function loadExternalTokens(request: SilentRequest, response: ExternalTokenResponse, options: LoadTokenOptions): AuthenticationResult

Parameters

request
SilentRequest
response

ExternalTokenResponse

Returns

AuthenticationResult

AuthenticationResult for the response that was loaded.