From 9aec279d05b05d397b14c1ee4ef3f1421cd90251 Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Wed, 9 Jul 2025 07:25:39 +0200 Subject: [PATCH] feat: refresh page when auth tokens are cleared --- composables/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/composables/auth.ts b/composables/auth.ts index 0ac2e8b..e520c9c 100644 --- a/composables/auth.ts +++ b/composables/auth.ts @@ -7,6 +7,7 @@ export const useAuth = () => { async function clearAuth() { accessToken.value = null; user.value = null; + await navigateTo("/login"); } async function register(username: string, email: string, password: string) {