feat(desktop): implement phase 2 native capabilities
Client Quality Gates / Shared client and Web (push) Has been cancelled
Client Quality Gates / macOS Desktop (push) Has been cancelled

This commit is contained in:
Cheng Zhou
2026-06-30 21:21:55 +08:00
parent 7c721d4e5c
commit 628ff8828b
64 changed files with 3516 additions and 222 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ export const useAuthStore = defineStore("auth", () => {
? await devLogin({ email, password })
: await encryptedLogin(email, password);
token.value = data.access_token;
setToken(data.access_token);
await setToken(data.access_token);
useSessionStore().resetActivity();
localStorage.setItem(LAST_LOGIN_EMAIL_KEY, email);
const me = await fetchMeAction();
@@ -62,7 +62,7 @@ export const useAuthStore = defineStore("auth", () => {
return data;
};
const logout = () => {
const logout = async () => {
const studyStore = useStudyStore();
const sessionStore = useSessionStore();
const userKey = user.value?.email || localStorage.getItem(LAST_LOGIN_EMAIL_KEY) || "";
@@ -71,7 +71,7 @@ export const useAuthStore = defineStore("auth", () => {
user.value = null;
forceLogin.value = false;
sessionStore.resetActivity();
clearToken();
await clearToken();
studyStore.clearCurrentStudy();
};