I am doing server side OAuth following this guide.
I successfully completed the OAuth, but am not getting a refresh_token
in the step Exchange authorization code for refresh and access tokens:
Request:
POST /o/oauth2/token HTTP/1.1
HOST: accounts.google.com
content-type: application/x-www-form-urlencoded
content-length: 260
code=4/KEOuzih9jwfnHj7Rl1DeqHhcJF0goKPwtwR5IQ09ieg&
client_id=****.apps.googleusercontent.com&
client_secret=****&
redirect_uri=http%3A%2F%2Flocalhost%3A8000%2FsSignIn.html&
grant_type=authorization_code
Response:
{
"access_token" : "****",
"expires_in" : 3580,
"token_type" : "Bearer"
}
Am I missing something?