问题 So I was using the guide and codes from https://developers.google.com/identity/sign-in/web/ When I clicked the button, it works fine, it will redirect me to google login page, and no problem occurs during authentication. Once finished, it redirected me back to the page (vue component) where the button is located. In theory it should call onSignIn method and print out info with console.log , but it didn't happen. Somehow Vue was not able to excute data-onsuccess="onSignIn" . I tried to change