some fixes
This commit is contained in:
@@ -90,8 +90,8 @@ function createAuthStore() {
|
||||
}
|
||||
},
|
||||
logout: async () => {
|
||||
await supabase.auth.signOut();
|
||||
set({ user: null, loading: false, error: null });
|
||||
await supabase.auth.signOut();
|
||||
},
|
||||
clearError: () => update((s) => ({ ...s, error: null })),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user