@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.
- package/lib/verify.js +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".`, {
|