mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 12:31:12 -05:00
Fix auth hook deadlock
This commit is contained in:
@@ -62,7 +62,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||||||
// Listen for auth changes
|
// Listen for auth changes
|
||||||
const {
|
const {
|
||||||
data: { subscription },
|
data: { subscription },
|
||||||
} = supabase.auth.onAuthStateChange(async (event, session) => {
|
} = supabase.auth.onAuthStateChange((event, session) => {
|
||||||
const currentEmail = session?.user?.email;
|
const currentEmail = session?.user?.email;
|
||||||
const newEmailPending = session?.user?.new_email;
|
const newEmailPending = session?.user?.new_email;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user