Skip to content

Commit

Permalink
MDL demo only send VP token
Browse files Browse the repository at this point in the history
  • Loading branch information
cykoder committed Sep 12, 2024
1 parent cdb9b13 commit 22cd858
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/mdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ function OID4VPProofRequest({ title, desc, proofRequestSetupObject, onPres, setE
if (dataObj.vp_token) {
// we must act as the client submitting the presentation now
try {
await axios.post(`${baseUrl}/openid/vp/${proofRequest.id}/callback`, dataObj);
await axios.post(`${baseUrl}/openid/vp/${proofRequest.id}/callback`, {
vp_token: dataObj.vp_token,
});
} catch (e) {
console.error(e);
throw new Error(
Expand Down

0 comments on commit 22cd858

Please sign in to comment.