Skip to content
Snippets Groups Projects
Commit b004c160 authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

Merge branch 'TMSS-2900-Front-End-Only-Fix-Keycloak' into 'master'

fix typo

Closes TMSS-2900

See merge request !1300
parents 8f081617 a1cd93d0
No related branches found
No related tags found
1 merge request!1300fix typo
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment