Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force the OAuth prompt when authenticating the GOOGLE_SHEETS for the first time #394

Open
fttx opened this issue Nov 6, 2022 · 0 comments
Milestone

Comments

@fttx
Copy link
Owner

fttx commented Nov 6, 2022

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

@fttx fttx added this to the v4.4.0 milestone Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant