This commit is contained in:
Warunee Tamkoo 2024-07-26 10:42:31 +07:00
parent 01a257c5c2
commit 56aa900ea3

View file

@ -77,10 +77,8 @@ const router = createRouter({
// authen with keycloak client
router.beforeEach((to, from, next) => {
if (to.meta.Auth) {
if (keycloak.authenticated === undefined && to.meta.Auth) {
kcLogout();
}
if (keycloak.authenticated === undefined && to.meta.Auth) {
kcLogout();
} else {
next();
}