decentralized-identity / did-jwt

Create and verify DID verifiable JWT's in Javascript
Apache License 2.0
331 stars 70 forks source link

`verifyJWT` requires `iss` and `client_id` properties in VC JWT #273

Closed tadejpodrekar closed 1 year ago

tadejpodrekar commented 1 year ago

Current Behavior

Inside the verifyJWT function, both iss and client_id properties are required inside a JWT. The error text is correct, but the check is incorrect. Reference

Expected Behavior

Either the iss OR the client_id property should be required, not both.

tadejpodrekar commented 1 year ago

I apologise, I made a mistake in testing. The verifyJWT function works as expected.