mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
Fix keybase key fetching
This commit is contained in:
parent
3bb38e5d2c
commit
892eccee7e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue