apps-script-oauth2 icon indicating copy to clipboard operation
apps-script-oauth2 copied to clipboard

Allow refreshing token for use with new scopes

Open andrewschmidt-a opened this issue 5 months ago • 1 comments
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?

andrewschmidt-a avatar Jun 06 '25 16:06 andrewschmidt-a

Here is an example implementation I have applied to my own version.

Image

andrewschmidt-a avatar Jun 06 '25 16:06 andrewschmidt-a

@vinay-google any appetite for this? This allows refreshing with different scopes which offline tokens are often used to do.

andrewschmidt-a avatar Aug 25 '25 21:08 andrewschmidt-a