I found an issue that "refresh_token" disappeared from the response in this request:
curl --location --request POST 'https://accounts.google.com/o/oauth2/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'client_id=***' \ --data-urlencode 'grant_type=refresh_token' \ --data-urlencode 'client_secret=***' \ --data-urlencode 'refresh_token=***
My response looks like:
{ "access_token": "---", "expires_in": 3599, "scope": "https://www.googleapis.com/auth/userinfo.email openid", "token_type": "Bearer", "id_token": "---" }
but I had "refresh_token" in this response before. Can you say why? Thanks!
Hi @peolytest,
Welcome to the Google Cloud Community!
The first thing that i noticed is that you are missing a ( ' ) at the end of your - -data-urlencode 'refresh_token=***
Checked the format here, and found out that it should be enclosed.
Let me know if it helped, thanks!
Hi! @Marramirez,
In my code, I have ' in the end. The main question is why the refresh token disappeared from the response. Or did you never have it in this response?
Thanks