@sd-jwt/sd-jwt-vc 0.20.1-next.3 → 0.20.1-next.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/sd-jwt-vc",
3
- "version": "0.20.1-next.3+7390003",
3
+ "version": "0.20.1-next.5+8649e8f",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -39,7 +39,7 @@
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
41
  "@owf/token-status-list": "^0.3.1",
42
- "@sd-jwt/core": "0.20.1-next.3+7390003",
42
+ "@sd-jwt/core": "0.20.1-next.5+8649e8f",
43
43
  "zod": "^4.4.3"
44
44
  },
45
45
  "devDependencies": {
@@ -63,5 +63,5 @@
63
63
  "esm"
64
64
  ]
65
65
  },
66
- "gitHead": "73900032a1c009d05583c1a422073f8eab0fa276"
66
+ "gitHead": "8649e8f6498562a03ba931a9940c16d9ace3d11f"
67
67
  }
@@ -341,6 +341,21 @@ describe('App', () => {
341
341
  );
342
342
  });
343
343
 
344
+ test('VCT Metadata retrieval fails when fetched type metadata is invalid', async () => {
345
+ const expectedPayload: SdJwtVcPayload = {
346
+ iat,
347
+ iss,
348
+ vct: 'http://example.com/invalid',
349
+ ...claims,
350
+ };
351
+ const encodedSdjwt = await sdjwt.issue(
352
+ expectedPayload,
353
+ disclosureFrame as unknown as DisclosureFrame<SdJwtVcPayload>,
354
+ );
355
+
356
+ await expect(sdjwt.getVct(encodedSdjwt)).rejects.toThrowError();
357
+ });
358
+
344
359
  test('VCT with extends - simple chain', async () => {
345
360
  const expectedPayload: SdJwtVcPayload = {
346
361
  iat,