← Back to Archive
Thread ID: 6960B1B4

Critical: Google Auth Loop & "Internal Error" on Lovable Cloud (Managed Supabase)

Archived from community support channel. Created 1/9/2026
OP
Hi team, I need urgent help. My project is blocked. I'm building an app on Lovable Cloud (using the managed Supabase) and facing persistent issues with Google OAuth for new users. The Behavior: The Loop (Partially Fixed): I initially had an infinite redirect loop. I fixed the redirectTo param in code because I cannot edit Redirect URLs in the Supabase dashboard (getting "System-managed URLs cannot be added manually" error). The Current Crash: Now, when a NEW user signs in with Google, the auth completes, but the app crashes immediately with an "Internal Error" popup. Diagnosis: It seems like the Database Trigger (handle_new_user) or RLS Policies are failing to create the user profile record in the managed environment. I have asked Lovable AI to apply migrations to fix the Trigger and ON CONFLICT clauses multiple times. The AI says "Migration applied", but the Internal Error persists for every new sign-up. Request: Since I cannot access the underlying logs or manually configure the Supabase instance fully, I suspect the integration is broken. Can someone check why the handle_new_user trigger is failing in the Cloud environment? Thanks!
C
sounds like the handle_new_user trigger is failing silently but you can't see the logs on Lovable Cloud. This is what I'd try: 1. Ask AI: "Show me the exact handle_new_user trigger code" 2. Simplify it: "Replace the trigger with a basic INSERT with ON CONFLICT DO NOTHING" 3. Test RLS: "Temporarily disable RLS on profiles table" If nothing works, contact support with your Project ID - they can see the actual logs. Others have reported auth issues on Lovable Cloud today btw, so might not just be you

Ready to Take The Next Step? Let’s Chat!

BOOK A CALL →

enrollments@ambitiouslabs.io
+1 469-402-6327