[PR #3303] [MERGED] fix(oauth): Google prompt doesn't allow + #12992

Closed
opened 2026-04-13 08:41:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3303
Author: @ping-maxwell
Created: 7/8/2025
Status: Merged
Merged: 7/8/2025
Merged by: @Bekacru

Base: mainHead: fix/oauth/google-select-acc-consent-prompt


📝 Commits (3)

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/social-providers/google.ts (+3 -0)

📄 Description

Regarding Google social provider: In order to get consent and select_account prompt, we need to pass it like "select_account consent". However BA's type definitions only allow for "select_account+consent" - likely because it's the standard?

Anyway this PR will take that select_account+consent defined by the user and convert it to the spaced version (select_account consent).


🔄 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/3303 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 7/8/2025 **Status:** ✅ Merged **Merged:** 7/8/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/oauth/google-select-acc-consent-prompt` --- ### 📝 Commits (3) - [`63b5c76`](https://github.com/better-auth/better-auth/commit/63b5c76b446737a1f26cd2730aedca885f7db88a) fix(oauth): Google prompt doesn't allow `+` - [`937f80f`](https://github.com/better-auth/better-auth/commit/937f80f77eb60b513dcfbcdf2e17ffcbbce5ed78) chore: lint - [`86abb8f`](https://github.com/better-auth/better-auth/commit/86abb8f340754baef323b9e93115d5073ae69d8b) chore: cleanup ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/social-providers/google.ts` (+3 -0) </details> ### 📄 Description Regarding Google social provider: In order to get `consent` and `select_account` prompt, we need to pass it like "select_account consent". However BA's type definitions only allow for "select_account+consent" - likely because it's the standard? Anyway this PR will take that `select_account+consent` defined by the user and convert it to the spaced version (`select_account consent`). --- <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-04-13 08:41:41 -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#12992