Skip to content

Commit

Permalink
duplicate patches
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Jan 15, 2024
1 parent 238e6c6 commit 6864ca5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@
"@sd-jwt/core": "0.1.2-alpha.0",
"@sd-jwt/utils": "0.1.2-alpha.0",
"@sd-jwt/types": "0.1.2-alpha.1"
},
"pnpm": {
"patchedDependencies": {
"@sphereon/[email protected]": "patches/@[email protected]"
}
}
}
13 changes: 13 additions & 0 deletions agent/patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/VcIssuer.js b/dist/VcIssuer.js
index 976789a3560a89df59094c868239b6d468e08fff..8be2d2bb1b0fe914fe0abca5c9e0e7028b038e49 100644
--- a/dist/VcIssuer.js
+++ b/dist/VcIssuer.js
@@ -304,7 +304,7 @@ class VcIssuer {
let preAuthorizedCode;
let issuerState;
try {
- if (credentialRequest.format !== 'jwt_vc_json' && credentialRequest.format !== 'jwt_vc_json-ld' && credentialRequest.format !== 'vc+sd-jwt') {
+ if (credentialRequest.format !== 'jwt_vc_json' && credentialRequest.format !== 'jwt_vc_json-ld' && credentialRequest.format !== 'vc+sd-jwt' && credentialRequest.format !== 'ldp_vc') {
throw Error(`Format ${credentialRequest.format} not supported yet`);
}
else if (typeof this._jwtVerifyCallback !== 'function' && typeof jwtVerifyCallback !== 'function') {

0 comments on commit 6864ca5

Please sign in to comment.