, we are
// not on wp-login.php, so change the location to wp-login.php.
if ( 'undefined' !== typeof auth && auth.hasOwnProperty( 'wpLoginUrl' ) ) {
newHref = authUpdateQuerystringParam( auth.wpLoginUrl, 'external', 'google' );
}
if ( location.href === newHref ) {
location.reload();
} else {
location.href = newHref;
}
});
} else {
// Update the app to reflect a signed out user
// Possible error values:
// "user_signed_out" - User is signed-out
// "access_denied" - User denied access to your app
// "immediate_failed" - Could not automatically log in the user
// console.log('Sign-in state: ' + credentialResponse['error']);
// If user denies access, reload the login page.
if ( credentialResponse.error === 'access_denied' || credentialResponse.error === 'user_signed_out' ) {
window.location.reload();
}
}
}
Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site web. Si vous continuez à utiliser ce site, nous supposerons que vous en êtes satisfait.OKPolitique de confidentialité