user2963647
user2963647

Reputation: 13

How to get a refresh Token with Google OAuth2 javascript?

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.

Upvotes: 1

Views: 1654

Answers (1)

pinoyyid
pinoyyid

Reputation: 22316

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.

Upvotes: 3

Related Questions