I am implementing Google log in for the first time as described here and here.
I am using HTML with Javascript.
The problem that needs solving is as follows:
To check is user Signed-in use:
gapi.auth2.getAuthInstance().isSignedIn.get()