You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The refres_token is retrieved only the first time the app is approved in the google account.
If the user has approved the app on multiple computers, the second computer won't receive the refres_token (I guess).
Solution:
Conditionally add prompt: 'consent' to const authorizeUrl = oAuth2Client.generateAuthUrl({ access_type: 'offline', scope: GSheetHandler.scopes, }); when the local client hasn't ever been authenticated
The text was updated successfully, but these errors were encountered:
The refres_token is retrieved only the first time the app is approved in the google account.
If the user has approved the app on multiple computers, the second computer won't receive the refres_token (I guess).
Solution:
Conditionally add
prompt: 'consent'
toconst authorizeUrl = oAuth2Client.generateAuthUrl({ access_type: 'offline', scope: GSheetHandler.scopes, });
when the local client hasn't ever been authenticatedThe text was updated successfully, but these errors were encountered: