[PR #3652] [MERGED] Bug Fix: Twitter Refresh Token requires basic authentication #4935

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3652
Author: @bytechase
Created: 7/27/2025
Status: Merged
Merged: 7/27/2025
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (3)

  • 123c442 Use basic auth for refreshing token
  • e9612b6 change set
  • 9f2f51f Merge branch 'bug/twitter-refresh-token-auth'

📊 Changes

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

View changed files

.changeset/fast-suns-peel.md (+5 -0)
📝 packages/better-auth/src/social-providers/twitter.ts (+1 -0)

📄 Description

Refresh token for twitter requires auth header


Summary by cubic

Fixed an issue where refreshing Twitter tokens did not use basic authentication, which caused token refresh failures.

  • Bug Fixes
    • Added the required basic authentication header to the Twitter refresh 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/3652 **Author:** [@bytechase](https://github.com/bytechase) **Created:** 7/27/2025 **Status:** ✅ Merged **Merged:** 7/27/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`123c442`](https://github.com/better-auth/better-auth/commit/123c4426575cd8a94065579daa3d3b50eb154d18) Use basic auth for refreshing token - [`e9612b6`](https://github.com/better-auth/better-auth/commit/e9612b6ff897ebfde4581fe11f5a8bb7464f0e52) change set - [`9f2f51f`](https://github.com/better-auth/better-auth/commit/9f2f51f49580bae8b6702e0ec26af527c5a26f1d) Merge branch 'bug/twitter-refresh-token-auth' ### 📊 Changes **2 files changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/fast-suns-peel.md` (+5 -0) 📝 `packages/better-auth/src/social-providers/twitter.ts` (+1 -0) </details> ### 📄 Description Refresh token for twitter requires auth header <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed an issue where refreshing Twitter tokens did not use basic authentication, which caused token refresh failures. - **Bug Fixes** - Added the required basic authentication header to the Twitter refresh 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:04:45 -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#4935