Replies: 5 comments 4 replies
-
running into the same issue, i need more specific scopes outside of the default ones but can't change them. doing this doesn't seem to work either: providers: [
TwitterProvider({
clientId: process.env.TWITTER_CLIENT_ID,
clientSecret: process.env.TWITTER_CLIENT_SECRET,
version: '2.0',
scope: 'users.read tweet.read bookmark.read',
}),
], |
Beta Was this translation helpful? Give feedback.
-
I've found the solution. The right way to configure the scope is this:
it's documented here: https://next-auth.js.org/configuration/providers/oauth#how-to |
Beta Was this translation helpful? Give feedback.
-
How to use access_token and refresh token to post tweet? |
Beta Was this translation helpful? Give feedback.
-
I also face this problem and when I see twitter.js file inside node_modules of auth.js find out authorization URL is hard coded with this URL string https://x.com/i/oauth2/authorize?scope=users.read tweet.read offline.access To fix it follow following step follow by me.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
looking at the code I've seen that the permission scope is hard coded:
It would be nice to have the possibility to configure them through the
options
parameter with something like:Do you think it could be an improvement?
Thanks.
U.
Beta Was this translation helpful? Give feedback.
All reactions