edit login & otp

This commit is contained in:
2026-05-31 14:12:18 +03:30
parent 2f485914b4
commit 27c44710be
34 changed files with 448 additions and 67 deletions
+4 -1
View File
@@ -26,10 +26,13 @@ export const useAuthStore = defineStore('auth', () => {
localStorage.removeItem(TOKEN_KEY);
}
async function loadUser() {
async function loadUser(force = false) {
if (!token.value) {
return;
}
if (user.value && !force) {
return;
}
try {
user.value = await fetchMe(token.value);
} catch {