Bug 1582537 - Call getScopedKeys on keys field. r=vladikoff

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Edouard Oger 2019-09-19 19:28:48 +00:00
Родитель 5092322d3b
Коммит 3017be71f8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1697,7 +1697,7 @@ FxAccountsInternal.prototype = {
* @param {Object} jwk
*/
async createKeysJWE(clientId, scope, jwk) {
let scopedKeys = await this.getScopedKeys(scope, clientId);
let scopedKeys = await this.keys.getScopedKeys(scope, clientId);
scopedKeys = new TextEncoder().encode(JSON.stringify(scopedKeys));
return jwcrypto.generateJWE(jwk, scopedKeys);
},