sudocode / ohmy-auth

OAuth made easy for PHP (deprecated)
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Get refresh_token in Google Auth #14

Open Basgrani opened 10 years ago

Basgrani commented 10 years ago

Hi, I'm trying to get the refresh_token for offline mode of Google but does not appear in the returned data. I followed the steps here:

https://developers.google.com/accounts/docs/OAuth2WebServer#refresh

access_token: "XXX" access_type: "offline" client_id: "XXX" client_secret: "XXX" code: "XXX" expires_in: 3600 id_token: "XXX" redirect_uri: "XXX" scope: "https://www.googleapis.com/auth/analytics.readonly https://www.googleapis.com/auth/yt-analytics.readonly https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email" state: "XXX" token_type: "Bearer"

these are the data returned but the "refresh_token" that should be returned does not appear the first time

any ideas?