fix: twitter refresh token requires basic authentication (#3652)

* Use basic auth for refreshing token

* change set
This commit is contained in:
Chase
2025-07-27 16:13:59 -04:00
committed by GitHub
parent e7af3aa80c
commit e4af2530f0
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"better-auth": major
---
Bug fix for refreshing twitter tokens

View File

@@ -138,6 +138,7 @@ export const twitter = (options: TwitterOption) => {
clientKey: options.clientKey,
clientSecret: options.clientSecret,
},
authentication: "basic",
tokenEndpoint: "https://api.x.com/2/oauth2/token",
});
},