diff --git a/src/claims.js b/src/claims.js index f47d2c2..a3993dd 100644 --- a/src/claims.js +++ b/src/claims.js @@ -123,8 +123,10 @@ const verify = async (input, fingerprint, opts) => { }) }) - return Promise.all(promises).then((values) => { - return values + return Promise.allSettled(promises).then((values) => { + return values.map((obj, i) => { + return obj.value + }) }) } if (input instanceof Array) { @@ -140,8 +142,10 @@ const verify = async (input, fingerprint, opts) => { }) }) - return Promise.all(promises).then((values) => { - return values + return Promise.allSettled(promises).then((values) => { + return values.map((obj, i) => { + return obj.value + }) }) }