Hi all, quick question: how would I use
chrome.identity to get the logged-in / authenticated user's profile name and avatar?
I am able to authenticate with the profile scope using:
chrome.identity.getAuthToken({
interactive: true,
scopes: [ "profile" ]
}, (token) => {
// token...
});
... which, of course, gives me an auth token.
And I can get the profile email/ID using:
chrome.identity.getProfileUserInfo((userInfo) => {
console.log(userInfo)
});
... but that only returns the email and ID.
What steps should I take to get the user's name?