fix typescript error getAuthRoute

This commit is contained in:
Andreani Jean
2023-06-13 17:20:01 +02:00
parent ed1e3afe53
commit 423b77f217
2 changed files with 1 additions and 2 deletions

View File

@@ -56,7 +56,6 @@ router.beforeEach(async (to, from, next) => {
const loginUrl = `/api/users/me`
const isKeycloakLogout = await axios.get(loginUrl)
const isSiteLogin = !!cookies.get('user_id')
console.log(isKeycloakLogout)
if (isKeycloakLogout.status >= 300 || !isSiteLogin) {
const win: Window = window
win.location = getAuthRoute('/auth/login', to.path)