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!