diff --git a/src/keys.js b/src/keys.js index c40acda..2c97d5f 100644 --- a/src/keys.js +++ b/src/keys.js @@ -110,8 +110,9 @@ exports.fetchWKD = (identifier) => { exports.fetchKeybase = (username, fingerprint) => { return new Promise(async (resolve, reject) => { const keyLink = `https://keybase.io/${username}/pgp_keys.asc?fingerprint=${fingerprint}` + let rawKeyContent try { - const rawKeyContent = await req(opts.keyLink) + rawKeyContent = await req(keyLink) .then((response) => { if (response.status === 200) { return response