check sso 2 debug
This commit is contained in:
parent
a7168231a1
commit
3242576a12
@ -17,7 +17,7 @@ let rootElement: ReactDOM.Root
|
|||||||
export const mount = async (Component, element = document.getElementById('app')) => {
|
export const mount = async (Component, element = document.getElementById('app')) => {
|
||||||
let user = null;
|
let user = null;
|
||||||
try {
|
try {
|
||||||
await keycloak.init({ onLoad: "login-required" });
|
await keycloak.init({ onLoad: "check-sso" }); // "login-required" });
|
||||||
user = { ...(await keycloak.loadUserInfo()), ...keycloak.tokenParsed };
|
user = { ...(await keycloak.loadUserInfo()), ...keycloak.tokenParsed };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to initialize adapter:", error);
|
console.error("Failed to initialize adapter:", error);
|
||||||
|
Loading…
Reference in New Issue
Block a user