With Google Sign-In, we are using a custom button skin (following the branding guidelines mentioned on https://developers.google.com/identity/sign-in/web/build-button) and then calling to sign in manually from JS using essentially this:
gapi.load('auth2', function(){
gapi.auth2.init().signIn().then(function(response) {
// handle success
}).catch(function(error) {
// handle error/cancel
});
});
I'm looking at the documentation for Google Identity and it appears neither of those (custom button or trigger sign-in via JS) is possible? Is there a way to do it, that I'm missing? We'd really like to be able to keep the Google sign-in button consistent with our other login buttons and handle UI-friendly resizing, etc. Thanks so much!
Note: I know that google.accounts.id.prompt() is in the documentation, but this doesn't appear to work universally. When I try it, I just get an opt_out_or_no_session error and nothing happens. Plus we'd like to use the Google button, rather than one tap, which is what I think this is for.