After successfully implementing Google signin locally, I encountered an issue when attempting to login on a server. The error message displayed was:
'Uncaught: popup closed by user'
Despite disabling adblockers and other potential interference, the error persisted.
Using Vuejs for login, I am confident in my code as it functions properly during local testing.
Although I doubt the issue lies within the code, here are my Vue.js methods for login:
clickButton(type) {
var that = this
that.signType = type
auth2.grantOfflineAccess({ 'redirect_uri': 'postmessage', 'approval_prompt': 'force' }).then(that.onSignIn);
},
// Callback for Sign In
onSignIn(authResult) {
if (authResult.code) {
this.$store.dispatch(TYPES.GET_GOOGLE_TOKEN, { code: authResult.code })
}
},