File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ const authSetup = function () {
106
106
const refreshToken = function ( ) {
107
107
let d = new Date ( ) ;
108
108
logger ( 'checking token status at: ' , `${ d . getHours ( ) } ::${ d . getMinutes ( ) } ::${ d . getSeconds ( ) } ` ) ;
109
- var token = getCookie ( tcJWTCookie ) ;
109
+ var token = getCookie ( v3JWTCookie ) ;
110
110
if ( ! token || isTokenExpired ( token ) ) {
111
111
logger ( 'refreshing token... at: ' , `${ d . getHours ( ) } ::${ d . getMinutes ( ) } ::${ d . getSeconds ( ) } ` ) ;
112
112
try {
@@ -192,9 +192,6 @@ const authSetup = function () {
192
192
} ;
193
193
194
194
const logout = function ( ) {
195
- auth0 . logout ( {
196
- returnTo : host
197
- } ) ;
198
195
// TODO
199
196
setCookie ( tcJWTCookie , "" , - 1 ) ;
200
197
setCookie ( v3JWTCookie , "" , - 1 ) ;
@@ -206,6 +203,9 @@ const authSetup = function () {
206
203
setCookie ( 'auth0Refresh' , "" , - 1 ) ;
207
204
// for scorecard
208
205
setCookie ( 'JSESSIONID' , "" , - 1 ) ;
206
+ auth0 . logout ( {
207
+ returnTo : host
208
+ } ) ;
209
209
} ;
210
210
211
211
const isLoggedIn = function ( ) {
You can’t perform that action at this time.
0 commit comments