Bug 1590486 - ensure FxA web channels can grab the session token. r=eoger

Differential Revision: https://phabricator.services.mozilla.com/D50359

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Hammond 2019-10-23 21:21:23 +00:00
parent c3a1f83b56
commit 75ea9bc416

View File

@ -549,7 +549,12 @@ this.FxAccountsWebChannelHelpers.prototype = {
let signedInUser = null;
if (this.shouldAllowFxaStatus(service, sendingContext, isPairing)) {
const userData = await this._fxAccounts.getSignedInUser();
const userData = await this._fxAccounts._internal.getUserAccountData([
"email",
"sessionToken",
"uid",
"verified",
]);
if (userData) {
signedInUser = {
email: userData.email,