mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 23:52:05 -05:00
fix: twitter refresh token requires basic authentication (#3652)
* Use basic auth for refreshing token * change set
This commit is contained in:
5
.changeset/fast-suns-peel.md
Normal file
5
.changeset/fast-suns-peel.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"better-auth": major
|
||||
---
|
||||
|
||||
Bug fix for refreshing twitter tokens
|
||||
@@ -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",
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user