set logout at plugin keycloak
This commit is contained in:
parent
f6b2b26998
commit
01a257c5c2
2 changed files with 6 additions and 3 deletions
|
|
@ -13,7 +13,10 @@ const keycloak = new Keycloak(keycloakConfig);
|
|||
async function kcLogout() {
|
||||
await deleteCookie("BMAHRIS_KEYCLOAK_IDENTITY");
|
||||
await deleteCookie("BMAHRIS_KEYCLOAK_REFRESH");
|
||||
keycloak.logout();
|
||||
|
||||
if (keycloak.authenticated !== undefined) {
|
||||
keycloak.logout();
|
||||
}
|
||||
window.location.href = "/login";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue