I\'m trying to implement Google Sign In and retrieve the profile information of the user. The error is: Uncaught ReferenceError: gapi is not defined. Why is that?
platform.jsmounted hook of your component.Here's a fairly complete example you can just paste into a new vue-cli project.
Don't forget to supply your own client ID!
Signed In User Profile
{{ profile }}
Signed out.