Fix auth hook deadlock

This commit is contained in:
gpt-engineer-app[bot]
2025-10-01 15:52:35 +00:00
parent 5634dc4920
commit 8453940656

View File

@@ -62,7 +62,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
// Listen for auth changes
const {
data: { subscription },
} = supabase.auth.onAuthStateChange(async (event, session) => {
} = supabase.auth.onAuthStateChange((event, session) => {
const currentEmail = session?.user?.email;
const newEmailPending = session?.user?.new_email;