Google OAuth: can't get refresh token with authorization code
问题 I am using Google API Client for Google Analytics with OAuth 2.0 I read this to get the refresh token but it doesn't appears: https://developers.google.com/identity/protocols/OAuth2WebServer#offline I only get this instead: { "access_token": "ya29.twHFi4LsiF-AITwzCpupMmie-fljyTIzD9lG8y_OYUdEGKSDL7vD8LPKIqdzRwvoQAWd", "token_type": "Bearer", "expires_in": 3599, "id_token": "very long string" } Here is the code: Javascript (to get the Authorization Code): that works gapi.analytics.ready