create deck with json

This commit is contained in:
gitea
2026-02-13 15:31:25 +01:00
parent 43486d7c39
commit 9eede674b6
16 changed files with 1537 additions and 91 deletions
+7 -2
View File
@@ -26,8 +26,13 @@ function createAuthStore() {
} catch (e) {
set({ user: null, loading: false, error: e?.message ?? 'Auth error' });
}
supabase.auth.onAuthStateChange((_event, session) => {
setSession(session);
supabase.auth.onAuthStateChange(async (_event, session) => {
if (session != null) {
setSession(session);
return;
}
const { data: { session: current } } = await supabase.auth.getSession();
setSession(current);
});
},
login: async (email, password) => {