Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 96e2542

Browse files
author
Sachin Maheshwari
committed
changes in logout function according to new auth flow
1 parent fc26666 commit 96e2542

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

js/reskin/newTCScript.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,9 @@ function adjustFooterMargin() {
496496
}
497497

498498
function doLogOutTC() {
499-
var temp = window.location.hostname.split('.').reverse();
500-
var root_domain = '.' + temp[1] + '.' + temp[0];
501-
$.removeCookie("tcjwt", {domain:root_domain});
502-
$.removeCookie("tcsso", {domain:root_domain});
503-
window.location.replace("https://www" + root_domain);
499+
var temp = window.location.hostname.split('.').reverse();
500+
var root_domain = '.' + temp[1] + '.' + temp[0];
501+
window.location.replace("https://accounts-auth0" + root_domain + "?retUrl=https://" + root_domain);
504502
}
505503

506504
$(document).ready(function() {

0 commit comments

Comments
 (0)