TokenCache class
Token cache manager
Constructors
Token |
Properties
is |
Methods
load |
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
- storage
- BrowserCacheManager
- 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
- options
- LoadTokenOptions
Returns
AuthenticationResult
AuthenticationResult
for the response that was loaded.