mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49: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) => {
|
exports.fetchKeybase = (username, fingerprint) => {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
const keyLink = `https://keybase.io/${username}/pgp_keys.asc?fingerprint=${fingerprint}`
|
const keyLink = `https://keybase.io/${username}/pgp_keys.asc?fingerprint=${fingerprint}`
|
||||||
|
let rawKeyContent
|
||||||
try {
|
try {
|
||||||
const rawKeyContent = await req(opts.keyLink)
|
rawKeyContent = await req(keyLink)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in a new issue