Google social login issue while getting basic profile data

78 views Asked by At

currently i am using react and spring boot as google social login.
on react side i am using react-oauth/google and i am getting access token from google side.
but when i call below api from java side
https://www.googleapis.com/oauth2/v1/userinfo?alt=json&access_token=
where access_token is the token which i received on react side from google
enter image description here
but in response i am getting unauthorized error

also note that on google consent screen i have provided all permission

can someone please help me to solve this issue, because also i need to start working on gmail api.

enter image description here

Thanks in advance

0

There are 0 answers