Revert "Clear cookie before saving user cookie"

This reverts commit ed85a78ba3.
This commit is contained in:
Natsumi
2025-12-19 18:45:42 +13:00
parent f22bb5fde0
commit f2bc697117

View File

@@ -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);