I noticed in the audience parameter the options parameter is set to required FALSE, but I receive the error JWT audience is required but your app address has not been configured. when I do not set the audience parameter
Therefore I set audience parameter, to my DApps MNID, and everything works as expected.
verifyJWT(request.body.JWT, {
audience: uportAppAddress // MNID of registered Decentralized Application.
}).then(verifiedJWT => {
console.log(verifiedJWT)
... // De more Things
})
Using the
verifyJWT
function to verify a JWT.https://developer.uport.me/did-jwt/guides/index/#parameters-1
I noticed in the
audience
parameter theoptions
parameter is set to requiredFALSE
, but I receive the errorJWT audience is required but your app address has not been configured
. when I do not set theaudience
parameterTherefore I set
audience
parameter, to my DApps MNID, and everything works as expected.