зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5092322d3b
Коммит
3017be71f8
|
@ -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);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче