add remove cookies

This commit is contained in:
Andreani Jean
2023-05-03 15:21:16 +02:00
parent a3cc81d765
commit 69b874e0d9

View File

@@ -23,6 +23,8 @@ onMounted(async () => {
const isKeycloakLogout = await axios.get(loginUrl)
const isSiteLogin = !!cookies.get('user_id')
if (isKeycloakLogout || !isSiteLogin) {
cookies.remove('user_id')
cookies.remove('user_name')
const win: Window = window
win.location = `${loginUrl}?next_url=${route.path}`
}