Skip to content

Commit 843b1eb

Browse files
author
Sachin Maheshwari
committed
clearing old session cookies too
1 parent c8001a7 commit 843b1eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ const authSetup = function () {
161161
setCookie(tcJWTCookie, "", -1);
162162
setCookie(v3JWTCookie, "", -1);
163163
setCookie(tcSSOCookie, "", -1);
164+
165+
// to clear any old session
166+
setCookie('auth0Jwt', "", -1);
167+
setCookie('zendeskJwt', "", -1);
168+
setCookie('auth0Refresh', "", -1);
164169
};
165170

166171
const isLoggedIn = function () {

0 commit comments

Comments
 (0)