[PR #7292] feat(social-provider): support multiple OAuth client IDs for google #7202

Open
opened 2026-03-13 13:27:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7292
Author: @himself65
Created: 1/12/2026
Status: 🔄 Open

Base: canaryHead: himself65/2026/01/12/google


📝 Commits (1)

  • 89c15f5 feat(social-provider): support multiple OAuth client IDs for google

📊 Changes

2 files changed (+120 additions, -5 deletions)

View changed files

📝 docs/content/docs/authentication/google.mdx (+74 -0)
📝 packages/core/src/social-providers/google.ts (+46 -5)

📄 Description

Fixes: https://github.com/better-auth/better-auth/issues/1495


Summary by cubic

Add support for multiple Google OAuth client IDs across web, Android, and iOS. Uses the first ID for OAuth flows and accepts ID tokens from any configured ID; adds an optional nonce bypass for development/native SDKs.

  • New Features
    • clientId now supports string or string[]; first ID is used for auth code flows, all IDs are valid for ID token verification.
    • Added skipNonceCheck to optionally bypass nonce validation (default false; use only in development).
    • Updated docs with setup steps and examples for multi-platform (web, Android, iOS) and native SDK usage.
    • Backwards compatible; single client ID configs require no changes.

Written for commit 89c15f5918. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7292 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/12/2026 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `himself65/2026/01/12/google` --- ### 📝 Commits (1) - [`89c15f5`](https://github.com/better-auth/better-auth/commit/89c15f59188be4cc2c02a2c23629ba388fbf7323) feat(social-provider): support multiple OAuth client IDs for google ### 📊 Changes **2 files changed** (+120 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/authentication/google.mdx` (+74 -0) 📝 `packages/core/src/social-providers/google.ts` (+46 -5) </details> ### 📄 Description Fixes: https://github.com/better-auth/better-auth/issues/1495 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add support for multiple Google OAuth client IDs across web, Android, and iOS. Uses the first ID for OAuth flows and accepts ID tokens from any configured ID; adds an optional nonce bypass for development/native SDKs. - **New Features** - clientId now supports string or string[]; first ID is used for auth code flows, all IDs are valid for ID token verification. - Added skipNonceCheck to optionally bypass nonce validation (default false; use only in development). - Updated docs with setup steps and examples for multi-platform (web, Android, iOS) and native SDK usage. - Backwards compatible; single client ID configs require no changes. <sup>Written for commit 89c15f59188be4cc2c02a2c23629ba388fbf7323. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:27:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7202