Sometimes missing return parameter id_token
I am getting inconsistent response parameters when using the Google OAuth2 API.
scopes: ['email', 'profile']
Expected response:
{
access_token: 'ya29.fQB...aYSwXTK7Etm2XzIhA2VYf7Gtp',
token_type: 'Bearer',
expires_in: 3600,
id_token: 'eyJhbGciOiJSUzI1NiIsI...bDkzZDNjYzFicWJmdTIzdjF...pZWRfZW1h...0vYWNjb3Vud...kSObTnsLQKg...3Mpg6Y2K2Bhw6c'
}
Received answer:
{
access_token: 'ya29.fQDvVUn66q...vqe2WLQf_Nc4d4oc',
token_type: 'Bearer',
expires_in: 3600
}
Does anyone know how to fix this problem or work around it?
+3
source to share
3 answers