Skip to content
Snippets Groups Projects

fix typo

Merged Reinder Kraaij requested to merge TMSS-2900-Front-End-Only-Fix-Keycloak into master
1 unresolved thread
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -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") {
Please register or sign in to reply
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
Loading