@bedrock/vc-delivery 5.3.2 → 5.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/verify.js +2 -2
  2. package/package.json +1 -1
package/lib/verify.js CHANGED
@@ -181,9 +181,9 @@ export async function verifyDidProofJwt({workflow, exchange, jwt} = {}) {
181
181
  if(typeof match === 'string') {
182
182
  match = didDoc?.verificationMethod?.find?.(e => e.id === vm.id);
183
183
  }
184
- if(!(match && Array.isArray(match.controller) ?
184
+ if(!(match && (Array.isArray(match.controller) ?
185
185
  match.controller.includes(vm.controller) :
186
- match.controller === vm.controller)) {
186
+ match.controller === vm.controller))) {
187
187
  throw new BedrockError(
188
188
  `Verification method controller "${issuer}" did not authorize ` +
189
189
  `verification method "${vm.id}" for the purpose of "authentication".`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/vc-delivery",
3
- "version": "5.3.2",
3
+ "version": "5.3.3",
4
4
  "type": "module",
5
5
  "description": "Bedrock Verifiable Credential Delivery",
6
6
  "main": "./lib/index.js",