[PR #3410] [MERGED] feat(generic-oauth): add support for additional token URL params in generic OAuth #13051

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3410
Author: @CaoMeiYouRen
Created: 7/16/2025
Status: Merged
Merged: 7/17/2025
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (3)

  • 65ea526 feat(generic-oauth): add support for additional token URL params in generic OAuth
  • 9fbcb95 Update packages/better-auth/src/oauth2/validate-authorization-code.ts
  • 06517af fix: syntax error

📊 Changes

2 files changed (+14 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/oauth2/validate-authorization-code.ts (+7 -0)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+7 -0)

📄 Description

fix #3402


Summary by cubic

Added support for passing extra parameters to the token URL in generic OAuth, allowing more flexible provider integrations.

  • New Features
    • Added a new tokenUrlParams option to generic OAuth config.
    • These parameters are now included in token requests.

🔄 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/3410 **Author:** [@CaoMeiYouRen](https://github.com/CaoMeiYouRen) **Created:** 7/16/2025 **Status:** ✅ Merged **Merged:** 7/17/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`65ea526`](https://github.com/better-auth/better-auth/commit/65ea526731d867bb054401f7640c33cdf0986185) feat(generic-oauth): add support for additional token URL params in generic OAuth - [`9fbcb95`](https://github.com/better-auth/better-auth/commit/9fbcb95e58dd5771d0bf8fb76114a58e2b7673df) Update packages/better-auth/src/oauth2/validate-authorization-code.ts - [`06517af`](https://github.com/better-auth/better-auth/commit/06517afcd62c98adda09bbc8334b90eab96f1ec0) fix: syntax error ### 📊 Changes **2 files changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/oauth2/validate-authorization-code.ts` (+7 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+7 -0) </details> ### 📄 Description fix #3402 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added support for passing extra parameters to the token URL in generic OAuth, allowing more flexible provider integrations. - **New Features** - Added a new `tokenUrlParams` option to generic OAuth config. - These parameters are now included in token requests. <!-- 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-04-13 08:43:09 -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#13051