Google+ JavaScript API: How to detect user sign in status?
问题 I have deployed Google+ Sign-in Button, now I have to provide Sign-Out Button , before that, I need to know whether the user is still signed in, by which I can then show or hide this button. I found this documentation: gapi.auth.checkSessionState(sessionParams, callback) : https://developers.google.com/+/web/api/javascript?hl=en#gapiauthchecksessionstatesessionparams_callback Could someone demo how to use it ? Many thanks. 回答1: You don't need to use a separate function call to determine the