diff --git a/lib/auth/context.tsx b/lib/auth/context.tsx index 0ddd3ba..76da82d 100644 --- a/lib/auth/context.tsx +++ b/lib/auth/context.tsx @@ -107,6 +107,9 @@ export function AuthProvider({ children }: { children: React.ReactNode }) { if (!loading && user) { // * If we are on onboarding, skip check if (pathname?.startsWith('/onboarding')) return + + // * If we are processing auth callback, skip check to avoid redirect loops + if (pathname?.startsWith('/auth/callback')) return try { const organizations = await getUserOrganizations()