I build sign in with google on my angular app using firebase 8, and it's working well but i decoded google payload it doesn't have display name or first, last name and also profile piture.
Here's my function
const provider = new firebase.default.auth.GoogleAuthProvider();
return this.oAuthLogin(provider)
.then((value: any) => {
if (value) {
const user = value.credential;
console.log(user.idToken)
this.socialLoginAPICall(user['idToken']);
}
})
.catch((error) => {
this.toaster.error(error.message, 'Something went wrong')
});
here's a things what i get from google payload
{
"iss": "accounts.google.com",
"azp": "",
"aud": "",
"sub": "",
"email": "",
"email_verified": true,
"at_hash": "",
"iat": 12321322,
"exp": 2131321
}
anyone have idea about it? thanks in advance.