feat(auth): enable Google OAuth + expand redirect allowlist#196
Conversation
Add [auth.external.google] (enabled, client_id, env() secret — synced to cloud via `supabase config push`). Add bare-prod + git-main Vercel domains to additional_redirect_urls (glob smartmanagementsystem-*-... missed bare-prod domain). Manual steps done out-of-band: - Google Cloud Web OAuth client created (redirect URI https://zqrlsupezgltofwotven.supabase.co/auth/v1/callback) - Vercel NEXT_PUBLIC_APP_URL set to prod domain (was empty override) - Google consent screen publish pending (Testing → Production) Closes the 'Unsupported provider: provider is not enabled' error. Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 7 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
All reported issues were addressed across 1 file
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
…lob) Supabase glob `smartmanagementsystem-*-emiyakiritsugu3s-projects.vercel.app` matches git-main URL, making the explicit entry dead state. Co-Authored-By: Claude <noreply@anthropic.com>
|



What
Enables Google as an auth provider in the Supabase project and expands the OAuth redirect allowlist so Google login works end-to-end on the deployed app.
Root cause
Google login button returned
{"code":400,"error_code":"validation_failed","msg":"Unsupported provider: provider is not enabled"}. Supabase cloud projectzqrlsupezgltofwotvenhad the Google provider disabled — Supabase rejected the request before any redirect. Separately, theadditional_redirect_urlsglobsmartmanagementsystem-*-emiyakiritsugu3s-projects.vercel.appmissed the bare production domainsmartmanagementsystem-emiyakiritsugu3s-projects.vercel.app(no hyphen segment).Changes
Secret via
env()substitution — never committed, resolves atsupabase config pushtime.Out-of-band steps (already applied)
Five Star Supabasecreated in projectstatic-subject-497011-j8https://zqrlsupezgltofwotven.supabase.co/auth/v1/callbackhttps://smartmanagementsystem-emiyakiritsugu3s-projects.vercel.appsupabase config push --project-ref zqrlsupezgltofwotvendeployed this config (auth serviceupdated, secret stored hashed)NEXT_PUBLIC_APP_URL=https://smartmanagementsystem-emiyakiritsugu3s-projects.vercel.app(was""empty override →callbackUrl()fell to localhost; runtime server-action read, no rebuild needed)Pending (out-of-band, user action)
Auth → Audience → PUBLISH APP) to allow any Google account. Scopes (openid/email/profile) are non-sensitive → production active instantly, no Google verification required.Verify
After publishing consent: https://smartmanagementsystem-emiyakiritsugu3s-projects.vercel.app/login → "Entrar com Google
→ Google consent → Supabase callback →/auth/callback?next=%2Fdashboard→ session cookie →/dashboard`.Refs
docs/superpowers/specs/2026-07-08-auth-redirect-fix-design.mdSummary by cubic
Enable Google OAuth in Supabase and expand the redirect allowlist to include the production Vercel domain. Fixes the "Unsupported provider: provider is not enabled" error and enables Google login in production.
New Features
[auth.external.google]withclient_idandenv(SUPABASE_AUTH_EXTERNAL_GOOGLE_CLIENT_SECRET).additional_redirect_urls(glob missed the bare prod domain).Refactors
smartmanagementsystem-*-emiyakiritsugu3s-projects.vercel.appglob.Written for commit 9b006c2. Summary will update on new commits.