3

I don't know if this is a development only issue, because I've not published my extension. getProfileUserInfo() returns {email:"",id:""}. It doesn't matter if I'm logged into chrome or not.

Here is my permissions from my manifest:

"permissions": [
    "activeTab",
    "storage",
    "identity", //determines authorization status
    //"notifications",
    "tabs",
    "offscreenTabs",
    "http://*/",
    "https://*/"
],

Here is the relevant code:

chrome.identity.getProfileUserInfo((userInfo) => {
    debugger;
});

Thanks!

N-ate
  • 6,051
  • 2
  • 40
  • 48

1 Answers1

5

According to the documentation the id should always be available when the user is logged in. This doesn't seem to be the case for some reason. Adding the "identity.email" permission does fix the missing id issue.

As of M41+ the documentation indicates that to get id that email permission is required.

N-ate
  • 6,051
  • 2
  • 40
  • 48