Skip to content

Commit 47d1c28

Browse files
dauglyondakotablair
authored andcommitted
Update Auth2Session.ts
1 parent 8a2957e commit 47d1c28

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/client/modules/lib/kb_lib/Auth2Session.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -674,19 +674,6 @@ export class Auth2Session {
674674
new Cookie(this.cookieName, '').setPath('/')
675675
);
676676

677-
// Also remove the domain level cookie in case it was in advertently
678-
// created. This can be a cause for a corrupt token, since the old auth
679-
// system tokens are invalid, and it could create domain level cookies.
680-
// New auth code does not (other than the backup cookie.)
681-
const domainParts = window.location.hostname.split('.');
682-
let domain;
683-
for (let len = 2; len <= domainParts.length; len += 1) {
684-
domain = domainParts.slice(-len).join('.');
685-
this.cookieManager.removeItem(
686-
new Cookie(this.cookieName, '').setPath('/').setDomain(domain)
687-
);
688-
}
689-
690677
if (this.extraCookies) {
691678
this.extraCookies.forEach((cookieConfig) => {
692679
this.cookieManager.removeItem(

0 commit comments

Comments
 (0)