small medium large xlarge

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:
  const googleUser = gapi.auth2.getAuthInstance().currentUser.get();
20 Apr 2017, 19:01
Ben Rady (67 posts)

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

You must be logged in to comment