Clear cookie before saving user cookie

This commit is contained in:
Natsumi
2025-12-18 18:16:00 +13:00
parent 53aea66f18
commit f22bb5fde0

View File

@@ -173,8 +173,8 @@ export const useAuthStore = defineStore('Auth', () => {
watchState.isFriendsLoaded = false; watchState.isFriendsLoaded = false;
watchState.isFavoritesLoaded = false; watchState.isFavoritesLoaded = false;
notificationStore.notificationInitStatus = false; notificationStore.notificationInitStatus = false;
await webApiService.clearCookies();
await updateStoredUser(userStore.currentUser); await updateStoredUser(userStore.currentUser);
webApiService.clearCookies();
loginForm.value.lastUserLoggedIn = ''; loginForm.value.lastUserLoggedIn = '';
await configRepository.remove('lastUserLoggedIn'); await configRepository.remove('lastUserLoggedIn');
// workerTimers.setTimeout(() => location.reload(), 500); // workerTimers.setTimeout(() => location.reload(), 500);