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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -