What is chrome.identity.getProfileUserInfo designed to return?

Now that Chrome 37 is released, there is a new API, identity.getProfileUserInfo . I am not quite sure what information is intended to return or what it represents.

From the documentation, I thought that it would return the email address and user ID of the user signed in Chrome (that is, from the hamburger menu), but this is not entirely true - when I call it (from the extension context, which asks for "identity" permission) , I get the user ID signed in this way (and if I insert it after adding it to plus.google.com/, I get their G + page), but the email field is blank. Is this intended?

+8
source share
1 answer

Figured it out. There is an undocumented (at least in developer.chrome.com official docs) requirement to request "identity.email" permission to fill out this field. https://groups.google.com/a/chromium.org/forum/#!topic/apps-dev/WS-5GRw0RkI

+14
source

Source: https://habr.com/ru/post/974469/


All Articles