2
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
3
* Licensed under the MIT License.
4
4
*/
5
- import { ICacheStorage , Constants , PersistentCacheKeys , StringUtils , AuthorizationCodeRequest , ICrypto , CacheSchemaType , AccountEntity , IdTokenEntity , CacheHelper , CredentialType , AccessTokenEntity , RefreshTokenEntity , AppMetadataEntity } from "@azure/msal-common" ;
5
+ import { Constants , PersistentCacheKeys , StringUtils , AuthorizationCodeRequest , ICrypto , CacheSchemaType , AccountEntity , IdTokenEntity , CacheHelper , CredentialType , AccessTokenEntity , RefreshTokenEntity , AppMetadataEntity , CacheManager } from "@azure/msal-common" ;
6
6
import { CacheOptions } from "../config/Configuration" ;
7
7
import { BrowserAuthError } from "../error/BrowserAuthError" ;
8
8
import { BrowserConfigurationAuthError } from "../error/BrowserConfigurationAuthError" ;
@@ -16,7 +16,7 @@ const COOKIE_LIFE_MULTIPLIER = 24 * 60 * 60 * 1000;
16
16
* Cookies are only used if storeAuthStateInCookie is true, and are only used for
17
17
* parameters such as state and nonce, generally.
18
18
*/
19
- export class BrowserStorage implements ICacheStorage {
19
+ export class BrowserStorage extends CacheManager {
20
20
21
21
// Cache configuration, either set by user or default values.
22
22
private cacheConfig : CacheOptions ;
@@ -26,6 +26,7 @@ export class BrowserStorage implements ICacheStorage {
26
26
private clientId : string ;
27
27
28
28
constructor ( clientId : string , cacheConfig : CacheOptions ) {
29
+ super ( ) ;
29
30
// Validate cache location
30
31
this . validateWindowStorage ( cacheConfig . cacheLocation ) ;
31
32
0 commit comments