1
votes

I don't know how to request an refresh token with Javascript for Google APIs.

I've tried these: https://developers.google.com/accounts/docs/OAuth2WebServer#offline

But I don't know how to get the response.

1
Did you try any code? Or you are unsure of how OAuth operates?Rémi Benoit

1 Answers

3
votes

You can't request a refresh token from Javascript (at least not in a browser). The URL you posted is describing the web server flow, which is the only place you can get a refresh token.