@sphereon/oid4vci-client 0.8.2-unstable.17 → 0.8.2-unstable.18

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.
@@ -53,7 +53,7 @@ const kid = `${DID}#z2dmzD81cgPx8Vki7JbuuMmFYrWPgYoytykUZ3eyqht1j9Kbrm54tL4pRrDD
53
53
 
54
54
  // const jw = jose.importKey()
55
55
  describe('OID4VCI-Client using Sphereon issuer should', () => {
56
- async function test(credentialType: 'CTWalletCrossPreAuthorised' | 'CTWalletCrossInTime') {
56
+ async function test(credentialType: 'CTWalletCrossPreAuthorisedInTime' | 'CTWalletCrossAuthorisedInTime') {
57
57
  debug.enable('*');
58
58
  const offer = await getCredentialOffer(credentialType);
59
59
  const client = await OpenID4VCIClient.fromURI({
@@ -67,7 +67,7 @@ describe('OID4VCI-Client using Sphereon issuer should', () => {
67
67
  expect(client.getCredentialEndpoint()).toEqual(`${ISSUER_URL}/credential`);
68
68
  expect(client.getAccessTokenEndpoint()).toEqual(`${AUTH_URL}/token`);
69
69
 
70
- if (credentialType !== 'CTWalletCrossPreAuthorised') {
70
+ if (credentialType !== 'CTWalletCrossPreAuthorisedInTime') {
71
71
  const url = client.createAuthorizationRequestUrl({
72
72
  redirectUri: 'openid4vc%3A',
73
73
  codeChallenge: 'mE2kPHmIprOqtkaYmESWj35yz-PB5vzdiSu0tAZ8sqs',
@@ -100,17 +100,19 @@ describe('OID4VCI-Client using Sphereon issuer should', () => {
100
100
  expect(format.startsWith(wrappedVC.format)).toEqual(true);
101
101
  }
102
102
 
103
- it(
103
+ // Current conformance tests is not stable as changes are being applied it seems
104
+
105
+ it.skip(
104
106
  'succeed in a full flow with the client using OpenID4VCI version 11 and jwt_vc_json',
105
107
  async () => {
106
- await test('CTWalletCrossPreAuthorised');
107
- // await test('CTWalletCrossInTime');
108
+ await test('CTWalletCrossPreAuthorisedInTime');
109
+ // await test('CTWalletCrossAuthorisedInTime');
108
110
  },
109
111
  UNIT_TEST_TIMEOUT,
110
112
  );
111
113
  });
112
114
 
113
- async function getCredentialOffer(credentialType: 'CTWalletCrossPreAuthorised' | 'CTWalletCrossInTime'): Promise<string> {
115
+ async function getCredentialOffer(credentialType: 'CTWalletCrossPreAuthorisedInTime' | 'CTWalletCrossAuthorisedInTime'): Promise<string> {
114
116
  const credentialOffer = await fetch(
115
117
  `https://conformance-test.ebsi.eu/conformance/v3/issuer-mock/initiate-credential-offer?credential_type=${credentialType}&client_id=${DID_URL_ENCODED}&credential_offer_endpoint=openid-credential-offer%3A%2F%2F`,
116
118
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/oid4vci-client",
3
- "version": "0.8.2-unstable.17+fc8c151",
3
+ "version": "0.8.2-unstable.18+7eb9494",
4
4
  "description": "OpenID for Verifiable Credential Issuance (OpenID4VCI) client",
5
5
  "source": "lib/index.ts",
6
6
  "main": "dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "build": "tsc"
16
16
  },
17
17
  "dependencies": {
18
- "@sphereon/oid4vci-common": "0.8.2-unstable.17+fc8c151",
18
+ "@sphereon/oid4vci-common": "0.8.2-unstable.18+7eb9494",
19
19
  "@sphereon/ssi-types": "0.17.6-unstable.23",
20
20
  "cross-fetch": "^3.1.8",
21
21
  "debug": "^4.3.4"
@@ -69,5 +69,5 @@
69
69
  "OIDC4VCI",
70
70
  "OID4VCI"
71
71
  ],
72
- "gitHead": "fc8c1519ee5e45f12bc40327bedb0a0a79bbe867"
72
+ "gitHead": "7eb9494636fa1043016fb2e25fade2efbf46dd81"
73
73
  }