[PR #3510] [MERGED] fix: auth type on social provider #4863

Closed
opened 2026-03-13 12:02:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3510
Author: @Kinfe123
Created: 7/20/2025
Status: Merged
Merged: 7/21/2025
Merged by: @Bekacru

Base: mainHead: fix/auth-type-oauth-issue-social-provider


📝 Commits (1)

📊 Changes

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

View changed files

📝 packages/better-auth/src/oauth2/validate-authorization-code.ts (+4 -3)
📝 packages/better-auth/src/social-providers/twitter.ts (+1 -1)

📄 Description

Summary by cubic

Fixed OAuth authentication for social providers by switching Twitter to use HTTP Basic Auth and ensuring client_id is always included in the token request.


🔄 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/3510 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 7/20/2025 **Status:** ✅ Merged **Merged:** 7/21/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/auth-type-oauth-issue-social-provider` --- ### 📝 Commits (1) - [`698ac8d`](https://github.com/better-auth/better-auth/commit/698ac8d2c03aca62463dc5128f900490779910a4) fix: auth type ### 📊 Changes **2 files changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/oauth2/validate-authorization-code.ts` (+4 -3) 📝 `packages/better-auth/src/social-providers/twitter.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed OAuth authentication for social providers by switching Twitter to use HTTP Basic Auth and ensuring client_id is always included in the token request. <!-- 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 12:02:25 -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#4863