fixed some old TODOs

This commit is contained in:
Danny Coates 2018-12-18 13:55:46 -08:00
parent ac87fdff97
commit 6cc12528b3
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
9 changed files with 15 additions and 8 deletions

View file

@ -1,3 +1,4 @@
/* global AUTH_CONFIG */
import { arrayToB64, b64ToArray } from './utils';
const encoder = new TextEncoder();
@ -175,6 +176,6 @@ export async function deriveFileListKey(ikm) {
export async function getFileListKey(storage, bundle) {
const jwks = await decryptBundle(storage, bundle);
const jwk = jwks['https://identity.mozilla.com/apps/send'];
const jwk = jwks[AUTH_CONFIG.key_scope];
return deriveFileListKey(jwk.k);
}