Replies: 3 comments 21 replies
-
So if I am not mistaken, the documentation you refer to make the user go through a sign-in process again, but this time with additional scopes in the URL. Access tokens once issued, cannot be modified. You will need a new one with new scopes in it. This can be achieved with the https://datatracker.ietf.org/doc/html/rfc6749#section-3.3 https://next-auth.js.org/getting-started/client#additional-params |
Beta Was this translation helpful? Give feedback.
-
Hey @balazsorban44, there's one more thing I might need for my use case 🙈. TL;DR; I would like to override Long story short: My use-case involve having the user grant access to Google Spreadsheets for long-running API data access, independently from their sign-in sessions to our app, therefore I need to have a different
So, it would be just a matter of moving up Thanks! 😄 |
Beta Was this translation helpful? Give feedback.
-
I have the same app and the same next auth routes for admin and regular users. I needed users to log in normally, and admins to have YouTube permission. I created a different button for the admins with additional scopes.
|
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.
-
Question 💬
TL;DR; Need to grant additional OAuth scopes after the user have signed up/in, besides
email
Use-case: After a user have signed up to our website, they can optionally opt-in to grant acces to Google Spreadsheets, so an additional scope such as
https://www.googleapis.com/auth/spreadsheets ...more
should be granted by opening a new Consent screen with extended permissionsI've seen in the docs callbacks can be used to things such as Refresh Token Rotation (which is something I would need as well), but I am still not sure how to use those for the incremental scope use-case, or how to simply trigger a new Consent screen with extended scopes.
refresh_token
back from Google provider #408, Is there a way to change permissions for providers #1040Ay hit would be greatly appreciated! Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions