From f22bb5fde094526e4031dbd800028758cf631e79 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Thu, 18 Dec 2025 18:16:00 +1300 Subject: [PATCH] Clear cookie before saving user cookie --- src/stores/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/auth.js b/src/stores/auth.js index 5a2f83a3..5fbd4fd8 100644 --- a/src/stores/auth.js +++ b/src/stores/auth.js @@ -173,8 +173,8 @@ export const useAuthStore = defineStore('Auth', () => { watchState.isFriendsLoaded = false; watchState.isFavoritesLoaded = false; notificationStore.notificationInitStatus = false; + await webApiService.clearCookies(); await updateStoredUser(userStore.currentUser); - webApiService.clearCookies(); loginForm.value.lastUserLoggedIn = ''; await configRepository.remove('lastUserLoggedIn'); // workerTimers.setTimeout(() => location.reload(), 500);