Skip to content

Commit

Permalink
Fix zcapRequest response returned for verification
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Dec 19, 2024
1 parent 4e45ec7 commit 7d1b42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const verifyCredential = async ({
const body = {verifiableCredential, options};
if(verifier.settings.zcap) {
const response = await makeZcapRequest(verifier.settings, body);
return response?.data?.verifiableCredential;
return response?.data;
} else {
const {data, result, error} = await verifier.post({json: body});
if(!result || !result.ok) {
Expand All @@ -88,7 +88,7 @@ export const verifyPresentation = async ({
const body = {verifiablePresentation, options};
if(vpVerifier.settings.zcap) {
const response = await makeZcapRequest(vpVerifier.settings, body);
return response?.data?.verifiableCredential;
return response?.data;
} else {
const {data, result, error} = await vpVerifier.post({json: body});
if(!result || !result.ok) {
Expand Down

0 comments on commit 7d1b42f

Please sign in to comment.