CacheOptions: {
    cacheLocation?: BrowserCacheLocation | string;
    cacheMigrationEnabled?: boolean;
    claimsBasedCachingEnabled?: boolean;
    secureCookies?: boolean;
    storeAuthStateInCookie?: boolean;
    temporaryCacheLocation?: BrowserCacheLocation | string;
}

Use this to configure the below cache configuration options:

Type declaration

  • Optional cacheLocation?: BrowserCacheLocation | string

    Used to specify the cacheLocation user wants to set. Valid values are "localStorage", "sessionStorage" and "memoryStorage".

  • Optional cacheMigrationEnabled?: boolean

    If set, MSAL will attempt to migrate cache entries from older versions on initialization. By default this flag is set to true if cacheLocation is localStorage, otherwise false.

  • Optional claimsBasedCachingEnabled?: boolean

    Flag that determines whether access tokens are stored based on requested claims

  • Optional secureCookies?: boolean

    If set, MSAL sets the "Secure" flag on cookies so they can only be sent over HTTPS. By default this flag is set to false.

  • Optional storeAuthStateInCookie?: boolean

    If set, MSAL stores the auth request state required for validation of the auth flows in the browser cookies. By default this flag is set to false.

  • Optional temporaryCacheLocation?: BrowserCacheLocation | string

    Used to specify the temporaryCacheLocation user wants to set. Valid values are "localStorage", "sessionStorage" and "memoryStorage".

Generated using TypeDoc