From 84539406562b21cbaef530d9a1bd48bbd7bcdea9 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 1 Oct 2025 15:52:35 +0000 Subject: [PATCH] Fix auth hook deadlock --- src/hooks/useAuth.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useAuth.tsx b/src/hooks/useAuth.tsx index a8638010..0768c72c 100644 --- a/src/hooks/useAuth.tsx +++ b/src/hooks/useAuth.tsx @@ -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;