I am trying to create a platform for google my business and i have implemented one tap signin and in that i am getting the credentials but not the full information.here are my tried code
<script>
window.onload = function () {
google.accounts.id.initialize({
client_id: "clientid.apps.googleusercontent.com",
callback: handleCredentialResponse,
});
google.accounts.id.prompt((notification) => {
if (notification.isNotDisplayed() || notification.isSkippedMoment()) {
console.log("opted out");
}
});
function handleCredentialResponse(response) {
console.log(response)
// window.location = "https://github.com/";
}
};
</script>
here is the response i am getting
{
clientId:
"clientid.apps.googleusercontent.com",
credential:
"eyJhbGciOiJSUzI1NiIsImtpZCI6ImYwNTQxNWIxM2FjYjk1OT…40Jk8v3LcOvtopFD_tI2HMlFjg0dK96XrqNiOD0H3Akl",
select_by: "user",
};
