Checking if user has Google+ BEFORE sign-in to app? -
Checking if user has Google+ BEFORE sign-in to app? -
i'm using google api "google-signin-callback" in order monitor google status of user. want next logic:
if (/* [1] user logged-in google */) { if (/* [2] user has google+ */) { /* phone call gapi.auth.signin scope="https://www.googleapis.com/auth/plus.login" */ } else { /* phone call gapi.auth.signin scope="profile" (so not forcefulness upgrade) */ } } the news using page-level parameters "google-signin-callback" called right @ beginning, before user did anything. able check response.status.google_logged_in in order check [1] above.
the bad news don't see immediate way of checking [2] above. can check after user has signed in, checking profile of 'me' gapi.client.plus.people.get ... it's late.
any remedy?
there no way tell if unauthenticated user has google+ profile. violation of privacy so.
google-api google-plus
Comments
Post a Comment