small medium large xlarge

Generic-user-small
20 Apr 2017, 02:32
Michael Shields (2 posts)

I was getting the (Chrome) console message that 'googleUser' is undefined while completing Chapter 4, even though the Google login seemed to proceed correctly i.e. the button said ‘Signed in’ after completing the dialog interaction.

I got past the error by prepending the following code to the googleSignIn() function declaration:

  // Added this next line, as per: http://stackoverflow.com/a/42298059
  const googleUser = gapi.auth2.getAuthInstance().currentUser.get();
Benrady-avatar_pragsmall
20 Apr 2017, 19:01
Ben Rady (61 posts)

Do you have your app (and tests) deployed somehwere so that I can take a look?

You must be logged in to comment