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,7 +1,7 @@
const fetch = require('node-fetch');
const config = require('./config');
const KEY_SCOPE = 'https://identity.mozilla.com/apps/send';
const KEY_SCOPE = config.fxa_key_scope;
let fxaConfig = null;
let lastConfigRefresh = 0;
@ -14,6 +14,7 @@ async function getFxaConfig() {
{ timeout: 3000 }
);
fxaConfig = await res.json();
fxaConfig.key_scope = KEY_SCOPE;
lastConfigRefresh = Date.now();
return fxaConfig;
}