apps-script-oauth2
apps-script-oauth2 copied to clipboard
Allow refreshing token for use with new scopes
trafficstars
When using the client with offline access, refreshing the token will not pull in additional scopes added. by adding scope to the refresh token payload, this could be done.
Could we had at least a config or a parameter passed to the refresh token to allow pulling in new scopes on token refresh?
Here is an example implementation I have applied to my own version.
@vinay-google any appetite for this? This allows refreshing with different scopes which offline tokens are often used to do.