Skip to content

fix(auth): prefer canonical Google OAuth env names - #1720

Draft
groupthinking with Copilot wants to merge 2 commits into
mainfrom
copilot/verify-google-oauth-vercel-production
Draft

fix(auth): prefer canonical Google OAuth env names#1720
groupthinking with Copilot wants to merge 2 commits into
mainfrom
copilot/verify-google-oauth-vercel-production

Conversation

Copilot AI commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Canonical issue

Outcome

Canonical Google OAuth variables now take precedence without breaking Vercel environments still using legacy names. Production credential, redirect URI, and real callback verification remain protected operator actions.

Scope

  • Included:
    • Prefer GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET.
    • Retain GOOGLE_OAUTH_* as temporary fallbacks.
    • Add precedence regression coverage and migration guidance.
  • Explicitly excluded:
    • Vercel credential changes, Google Cloud redirect updates, deployment, and live sign-in verification.
process.env.GOOGLE_CLIENT_ID ||
process.env.GOOGLE_OAUTH_CLIENT_ID

Risk

  • Risk level: low
  • Failure mode: canonical variables are absent; legacy fallback continues to supply configuration.
  • Rollback: revert the environment lookup ordering.

Verification

Focused test run on 35dd63bdf33707cd7de5e57ce9d939447dc308c2.

  • Focused tests: npm --prefix apps/web test -- --run src/lib/__tests__/auth-config-source.test.ts
  • Required CI
  • Review threads resolved

Production evidence

Not applicable to this code-only change. Protected production verification requires canonical Vercel variables, redirect URI https://uvai.io/api/auth/callback/google, a deployed main SHA, and a real Google callback.

Agent handoff

  • One canonical issue is linked
  • No competing PR implements the same issue
  • Acceptance criteria are satisfied
  • Required checks pass on the current head
  • Human decision is requested only for product, security, irreversible infrastructure, or production approval

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Ready Ready Preview, v0 Sep 8, 2026 10:50pm UTC

Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
Copilot AI changed the title [WIP] Verify Google OAuth in Vercel production fix(auth): prefer canonical Google OAuth env names Sep 8, 2026
Copilot AI requested a review from groupthinking September 8, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Execution: verify Google OAuth in Vercel production (PR #903)

2 participants