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) {