test close redirect

This commit is contained in:
Warunee Tamkoo 2024-08-08 10:08:55 +07:00
parent e5f344d75b
commit 51448af9f5
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ async function kcLogout() {
if (keycloak.authenticated !== undefined) {
keycloak.logout();
}
window.location.href = "/login";
// window.location.href = "/login";
}
async function getToken() {

View file

@ -112,7 +112,7 @@ const router = createRouter({
router.beforeEach((to, from, next) => {
if (to.meta.Auth) {
if (keycloak.authenticated === undefined) {
kcLogout();
// kcLogout();
} else {
next();
}