I use google Oauth for login. Access to the right account will be implemented well. However, if it is an incorrect approach, an error window will appear.
like this
'Authorization Error Error 403: org_internal This client is restricted to users within its organization.'
I want to customize that window.
I tried to include alert('error') like this.
gauth.signIn({
scope : 'https://www.googleapis.com/auth/gmail.send'
}).then(function(){
checkLoginStatus();
},function(){
alert('error');
});
But, it appears after the appearing error window. I want to hide the error window.