troubleshoot

This commit is contained in:
Valentyne Stigloher 2025-09-14 13:31:29 +02:00
parent b968fc6f18
commit 0c0eaa3602

View File

@ -105,6 +105,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
};
const removeToken = async (username: string | null = null): Promise<void> => {
const accounts = await getAccounts();
console.log('removeToken', username, accounts, store.user, tokenCookie.value);
if (store.user) {
delete accounts[username || store.user.username];
@ -118,6 +119,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
tokenCookie.value = store.token;
}
}
console.log('removeToken, saving', accounts, tokenCookie.value);
saveAccounts(accounts);
};
return {