Update scopes using signInWithOAuth?
Is there an example or recommended pattern for handing scope changes for a user?
Currently users sign in via the google provider with base scopes. Then later within the app there is an option to connect google drive and google sheets. The connect google sheets button is using signInWithOAuth with the additional scopes required but after clicking through the authorization screens and approving the new scopes, checking the provider token still returns the original base scopes
when I expect it to return
Here is the initial Oauth:
And here is where I am trying to add the new scopes:
Currently users sign in via the google provider with base scopes. Then later within the app there is an option to connect google drive and google sheets. The connect google sheets button is using signInWithOAuth with the additional scopes required but after clicking through the authorization screens and approving the new scopes, checking the provider token still returns the original base scopes
when I expect it to return
Here is the initial Oauth:
And here is where I am trying to add the new scopes: