I have implemented the Oauth2 using google-auth-library in nodejs. Here is the sample code.
let ticket = await client.verifyIdToken({idToken: token, audience: CLIENT_ID})
payload = ticket.getPayload()
It was working fine and I was getting email of the user in the payload, but now I am not getting email in the payload. To verify that the code is correct I went to the firebase console and added a new user by login with a different account on my react application and found out that even firebase is not able to get the email from the google.
Here is the screenshot
My application depends on the email present in the payload. Is there any other way to get email in the payload?
Thanks for the help!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…