From e0c8c411a1aea3f3578dbe827a018059ec5e7b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Preu=C3=9F?= Date: Sat, 18 Feb 2023 14:46:10 +0100 Subject: [PATCH] Fix route --- src/runtime/composables/useAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/useAuth.ts b/src/runtime/composables/useAuth.ts index 9231d14..9b92d00 100644 --- a/src/runtime/composables/useAuth.ts +++ b/src/runtime/composables/useAuth.ts @@ -45,7 +45,7 @@ export default async (options: ComposableOptions = { accessToken.value = null; user.value = null; - return navigateTo('/') + return navigateTo(authConfig.endpoints.logout || authConfig.redirect.logout) } const setBearer = async (token: string, tokenType: string, expires: number) => {