diff --git a/SAS/TMSS/frontend/tmss_webapp/src/authenticate/auth.js b/SAS/TMSS/frontend/tmss_webapp/src/authenticate/auth.js index ec985d79fb750256216f55196b99d5d963fe3150..e290c098fe2fa579cace209e2508d1c1187c6882 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/authenticate/auth.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/authenticate/auth.js @@ -20,7 +20,7 @@ const Auth = { const loginType = localStorage.getItem("loginType"); - if (Auth.isDebugLoggin) console.log(" \\ validateExistingToken:", user) + if (Auth.isDebugLoggin) console.log(" \\ validateExistingToken:", user, loginType) // Check if token validation is already in progress if (Auth.isTokenCheckInProgress) { @@ -43,7 +43,7 @@ const Auth = { return true } } - if (loginType === "KeyCloak") { + if (loginType === "Keycloak") { if (Auth.isDebugLoggin) console.log(" - validateExistingToken: Checking for KeyCloak State", user?.token) const currentAuthenticationState = await AuthService.getKeycloakAuthState(); if (currentAuthenticationState?.is_authenticated) { @@ -61,7 +61,7 @@ const Auth = { return true } } - if (Auth.isDebugLoggin) console.log(" // validateExistingToken: Failed to Validate Token ") + if (Auth.isDebugLoggin) console.log(" / validateExistingToken: Failed to Validate Token ") Auth.isTokenCheckInProgress = false Auth.prevalidatedToken = "abcd-abcd" return false