I am trying to integrate Google login on my site. I followed the google developer code. Link: https://developers.google.com/+/web/signin/add-button
But I always get the response result as “immediate” from the signinCallback function. Does anyone know a solution for this?
function signinCallback(authResult) {
if (authResult['status']['signed_in']) {
document.getElementById('signinButton').setAttribute('style', 'display: none');
} else {
console.log('Sign-in state: ' + authResult['error']);
}
}
source
share