File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ export class AuthCache extends BrowserStorage {// Singleton
141
141
}
142
142
143
143
public clearMsalCookie ( ) : void {
144
- this . setItemCookie ( CacheKeys . NONCE_IDTOKEN , "" , - 1 ) ;
145
- this . setItemCookie ( CacheKeys . STATE_LOGIN , "" , - 1 ) ;
146
- this . setItemCookie ( CacheKeys . LOGIN_REQUEST , "" , - 1 ) ;
147
- this . setItemCookie ( CacheKeys . STATE_ACQ_TOKEN , "" , - 1 ) ;
144
+ this . clearItemCookie ( CacheKeys . NONCE_IDTOKEN ) ;
145
+ this . clearItemCookie ( CacheKeys . STATE_LOGIN ) ;
146
+ this . clearItemCookie ( CacheKeys . LOGIN_REQUEST ) ;
147
+ this . clearItemCookie ( CacheKeys . STATE_ACQ_TOKEN ) ;
148
148
}
149
149
150
150
/**
Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ export class BrowserStorage {// Singleton
94
94
return "" ;
95
95
}
96
96
97
+ clearItemCookie ( cName : string ) {
98
+ this . setItemCookie ( cName , "" , - 1 ) ;
99
+ }
100
+
97
101
getCookieExpirationTime ( cookieLifeDays : number ) : string {
98
102
const today = new Date ( ) ;
99
103
const expr = new Date ( today . getTime ( ) + cookieLifeDays * 24 * 60 * 60 * 1000 ) ;
You can’t perform that action at this time.
0 commit comments