{"_id":"@aries-framework/openid4vc-client","_rev":"209-71f4071c6c584a707231a5cf35dd308a","name":"@aries-framework/openid4vc-client","dist-tags":{"alpha":"0.5.0-alpha.97","latest":"0.4.2"},"versions":{"0.3.3-alpha.9":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.3.3-alpha.9","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.3.3-alpha.9+b6f89f9","@sphereon/openid4vci-client":"^0.3.6","class-transformer":"0.5.1","class-validator":"0.13.1"},"devDependencies":{"@aries-framework/node":"0.3.3-alpha.9+b6f89f9","reflect-metadata":"^0.1.13","rimraf":"~3.0.2","typescript":"~4.3.0"},"gitHead":"b6f89f943dc4417626f868ac9f43a3d890ab62c6","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.3.3-alpha.9","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-KQw3pyI5cppnClvhHW2mKSWyGXcx+fHt4HEuaLuan89DLrIVPUefO0rl3JCySqruPd0XZRAordZ87f8JJQOsKg==","shasum":"e407d2bfd7618e8427427917f7532e48c63a29e6","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.3.3-alpha.9.tgz","fileCount":18,"unpackedSize":21085,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApDI+MPyXD38Rb8cRXz54COHfEJ1joh4wYEMlQ3+nwHAiEAvFIwIRztD6YI1juys1lKgPmBOlKpG3YiiQ83iMrLmms="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwBLEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXDw/9HMwAKs4BT8sm48ctUBH8Jx5/85k8pNy/LsnZlp+M9PQsoQC2\r\nmQsAWFcLEK2L/PVevyfI2RMI6Y5jckv3UGXv6BChLFCg6l5LGqQ0O4WqJ4Oe\r\n4Tu9zvYplEVPm8ThmoEJ8D1T+OBxZ5neq7oAak8Mxk9G8jgYAuSB5hH4JwQ3\r\nFwkSrl0YR0QNWKIFW5HIysRIypXObvFA17Dbe4ODyhKyhSs6sznFYYqmoc2J\r\n89jR/GxModTroaF5jko/0J8XE+W0XDgYG5yJSiSJUGfYxBUqBBLY2/kS+A3E\r\np1rn0GTUgMZe0jmWWwY9Wi+1eTQEqafcYD9L/Vqm0UxKhIUTWakWzWzutJGA\r\nEDqr+HC+3JfQk3oY2nn91MQXXTom+dl4Mub8i4L8FmdTmYkoHtisQyUR3sAG\r\ns+IFsBne6GjQGNn3KMtmn2PfJufUK+6+AWSCL1Lz/NZOk7podRQ+62CcIL/U\r\nioRPkAXhKAwtdU2AfxS2q9J69wzNoelz4d/SqGZYwvc1How8ulK6cacat1pT\r\n4OIri7g/Yel71bw+yoUNtXVnpYsHlMVMTlBiAtdZllHVNerJPslCxMVIgCLU\r\nYA7zKNxopMWAOuIupZ4bz5eWHhF/Gvafh+gHDsPVDwEKgv/C3B1dILOiCIIM\r\nVsSH29hBCrfn3fKi6nOGa1w7r8mJBhTJh10=\r\n=+Jbp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.3.3-alpha.9_1673532099824_0.12032975744664398"},"_hasShrinkwrap":false},"0.3.4-alpha.10":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.3.4-alpha.10","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.3.4-alpha.10+3d86e78a","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.3.4-alpha.10+3d86e78a","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"3d86e78a4df87869aa5df4e28b79cd91787b61fb","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.3.4-alpha.10","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-A6xCsPsXzJhAKP7H6cLDuZvaIy4eTevNmrRuVsu+xT/EwuOqGPfpaJ6R/2XOeJ1HWwKpUnJqOh2M/kIUclMCfg==","shasum":"6f0e0815770aa1621762a36aca928f5dd55b7933","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.3.4-alpha.10.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGqQUgeowuudjqAXjUYu17hMoDXsoTOHV0XyQJeotL8aAiEAvc59zaTtXWXTfjJgdY4uATofODQc25L/v7/9X/N3YRY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4YkhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+Sw//YK7eO+FaKm3cXqTMnb7/mFAskUOBib7LbmYi5VeYxV0lGDYl\r\nJftc5cSY+ZOeMgZkbA7/SrbpUxhei1rrpGRrYv4hZcgy1kJEJQ61Fqvp1oyZ\r\n4RRtW8svuKu4YxvDmjUa5qlb9U9Qb8DYsfGi1TEv6i4PTQPxNQsPJBfndcV9\r\nU5SWF2F1MCSPuJ3e5yjA38p7eQmTJOOiT3cadra8wqgNLBCAphr2Iy15F8jW\r\ncYWEY2QmwdrK/meFg2ThBfcc+sfhQs8MmlCMZ/gmzYRuhjky9832Mt8tIWBe\r\n0Kzw08IkaPDuD4Q5J9Yacjhx5CQLbnnK9M+mgrA/IqOCd2qyHKSLwIjuOBmE\r\n9hIjy54FTn9nHgwb75y/QlssmpuBPwn4hZg6iPmti6EoB6JHqlI1Dawc+eKI\r\n2hjCjV+ACvifpjaZXoDTRNtlT1OzEesY+c45pp7T5KMdfL/DNN6v+wTzo3op\r\nzD0Gt1CZK3wRUeJWcYearJT/km0bC+5FLpOHxRV13rQkjdtaJec8IHlLdTa/\r\nHyD0Ac20SzPTmK1ragusmuLNdC4RbibKMDQiXqbBnvLIl7uN2GL+X76+ylal\r\nvFFYzZGCAjlzz8b9RAfscCI1w044c7xi2qNUSnMMBpgZF0Ovi9QaZzckaV5W\r\nkkLDd6wdrV3R33Mhvhst4oH5xAThUfhmVY8=\r\n=FqZl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.3.4-alpha.10_1675725089684_0.06477404836506473"},"_hasShrinkwrap":false},"0.3.4-alpha.12":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.3.4-alpha.12","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.3.4-alpha.12+f18d1890","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.3.4-alpha.12+f18d1890","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"f18d1890546f7d66571fe80f2f3fc1fead1cd4c3","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.3.4-alpha.12","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-fP82rTJ2dA7ANZW+3SPBCp9MFB20Ymldu2FwdwdDFH4iym/ASN1nJol3net0PZgaCdahXvs1Nirs30cnIIub5g==","shasum":"8c182582a02425e0031f39e7d4484f93a54af101","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.3.4-alpha.12.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGOubnoJdqNImgoYMzO5NE1sqxLsMx5VacbQMqNSz80AIhAJDgdTYFtAmPpSYVtGt5SRvPWCSxv+a0o7NWLzdas21Y"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4blSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcJxAAoa6VPhFPfhgkbVcjrdwKngDGP007Gm+papXtHcajkbpnJVkm\r\n9wPoQlLEIYyHgreJm1FxTTuP5kz4ntZj8W4/CQzwmvF34EYVT2sQo6DCR6sh\r\nRjgZffO4kJuawX8BLhqpsQ5o2rrg0SqY9rSs8UonAMsU9Y0lv0AVE/afECn0\r\nkcDefOyn91GzMAdGqTh4kE2c7gWlHv1coNSuOXSin0sv4pV3AS8SIUjOxtw1\r\nFAFGTWbZ/0iej8cGNvHJbKmWxjhfFK4PrfN2NDvr40ScZnp5yHclY3AG1NFc\r\nhIjX7Nljqk4nUAtxFuNuSoC+xdY+nVtUQL1J5C9c1XqbWNmo4/jBNabzDkw8\r\nLyb8T1JLGlsGgqbOT63JuZDE3jBbzfs95gIZe7I2tSv26OrTDESs6QBtQEfN\r\nGiCck9p44Yi8sRWfQKK+DTtF5wrNIXoGhLRaZfmHt8equ0v7j9njDLsu9Bt4\r\npSimivmbothd9Liad6AseGvNnVcUeQC20o7kKvcN9wtiCPMvbUnlOPt3VQPt\r\n7AKIqAcHwEzxo3qEIKgI9VYfO96izpPrfMOQ9ffP7C2mhLErVXkGcXw2F8/M\r\nwFmuqcdxNEgxe84dyhz0dzsbjXBQJQyc2yW+COiiubyaYXds3PjqwGBBmBRx\r\nNYO8mCOTBcqilpQx6onqoCgYhx6WzcWm4qw=\r\n=ACZs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.3.4-alpha.12_1675737426498_0.2821110922548069"},"_hasShrinkwrap":false},"0.3.4-alpha.13":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.3.4-alpha.13","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.3.4-alpha.13+d0563167","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.3.4-alpha.13+d0563167","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"d056316712b5ee5c42a159816b5dda0b05ad84a8","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.3.4-alpha.13","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-FnPp+/NMC9ZdrNScqG8y8eHCd8YfeuuEeXIVOd8zyB5xzNv0fDxT+LyaMrWZdaDBNhyM3OfGWmRuRHQUxLTUHQ==","shasum":"b94430532a0c1eef575f271b4e3bcf36427d8794","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.3.4-alpha.13.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbaMhO2oT+MjFpLUSJ0PlZLqdu8gUTilp989ohjhg+DQIgeINUDoVsRfAtWVOgcoi1aRQukQlZH1caTcwM9hiOQWQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5ZK2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJiA//WePUuYAXydZKc+H93iDvcb5x4aYohC4/AexZVSbweh52emfW\r\nmUCzF4h4vwO5DTe47tWgDsr+K+Z6jOnMWaAHQppYHpwspkd6kFS2hVS7+ARP\r\nXcqrlKwAc2G6BOuxvG3ZUe8n4V+gGF+6ZeFfQSaTb6OdvNaKCp0O2UQzwyS7\r\ncVxWgv+6VyB5sfQSXVIHfmcGnCYttne10glSoGwhwEo0T39AAE3ZQPeTEry7\r\nzGowRnJnLF7uR42saw+Z9IoSyb5XXMbC0/pYu/nf3/67Kndo5UNw2tbRp030\r\nIQlpY+tfWH5Dqs5siw00WNQvwwNAWWmEuPVYD/8/czEapPKhw5HCOMr9OXwB\r\nwGuFBnirclmDKChQWG1NDqxj+KIt11jX7QCS0/qakdVYGGoq0tFvqr9PoWfr\r\ndliJqnTnhIZebifda2f70GGhD+Cc+WzME/M4AwrOu1OtOjqLXJHMIXOAnPj7\r\nei99hW4ihDy0lI5fxr5Gf8h4G6m0qE+K1zsYWknol3IzwX33iuxAPeqVyrnQ\r\nyT6F/L0pyTYnpaGAXRKe4nqVwQx0wWEnUI+U2h9Up8MxDTsyniPPHnz0MFUv\r\nRYD1ZZfBcTkSKJ2h3wTDNfILxG1wTD34ZxPcM4Ky4IY7vnMIUTM9MqgWjZQz\r\nYztRyT9HGovAZrtyBdrSFh6o1rlDcaDbleI=\r\n=xhx1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.3.4-alpha.13_1675989686456_0.42792491867928506"},"_hasShrinkwrap":false},"0.3.4-alpha.14":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.3.4-alpha.14","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.3.4-alpha.14+86cb9d08","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.3.4-alpha.14+86cb9d08","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"86cb9d088693182a2a08f26645b00204bd7d2adc","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.3.4-alpha.14","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-kfKLhDBp30Y4pHztDigjfTvte+Cjz9DGYuotlDDdLoSc3CEXjEFbiHIf4Bcz8SzoxeWXBPAWPWH6kSTKLIGYcw==","shasum":"31df3455d20f705f678743cb04a814a8785595c9","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.3.4-alpha.14.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwyuRfUlba4mS94rJ4E5O6IKoC6+EEssp9T10S8arphgIhAPPIU8PMVSOPTUsDN1DYRkEE0k+IY/Z4ZDBZsLWpoN3E"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5lHpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrX/Q/7B432HxnlGDGk8dK3n4VVa017eV4IhYXQP8jcAQVT0irhmXiB\r\nk6D2gx6P7rQb9YN2i55KdE5gOxwf1prOGLDon7zr9lH/e5cqS85TSsB3FHfW\r\noGBDd+wY0pU0QOQFQFhMDrExPISIckashrpQ7pUXZ3ezybsRwW5987FdW8mU\r\nn5adWKQtpABt/RZgQ7jpNbp6ivwSbnc0JtqNz7UtFLWEyMBWlIeyfCMSESAN\r\nBk2cCj8ht/IeH3Fdo+gGDYfLkQlUk/vqH5KRtZhgkhKykkTSAVfJG7sSVMNr\r\nkKdHM4xrd/7xN+20CbwTCStnBLs4lgMzfpq21eSeCaPqRgwCi+CgUzbC8Wdt\r\nsiVT9P+OCokm4/MNyaNYCvHrGabMaQT+BJYZGwULtcGFhi7kuJ4x+a6xhXHL\r\n68fA1gZF9FlypkhEVbOUHw3E209gKlw4W/G4knfv0RK1moP8/pHf2bpV/hZI\r\nYrxWT5GdyNVh+KxbyyONkYVNSM7WzY4Uv0akvB/0oZ6miOD4+192nJVjqEIC\r\nzol8yalWkhRImLe7+BCscGVgvWBqI9Jvu67+nVYhTgjUxRvCGlzeAqRNXIlh\r\nMOQhk6pHsyKHQB1ULgd32AmT4qj3Anej5GJyrgk4ZsrDnTlk+F1Aa1BNcw25\r\niFKX0hcUE4VBcjfuEIfnbC6cpebhws577jI=\r\n=ipzT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.3.4-alpha.14_1676038633002_0.8901370992708091"},"_hasShrinkwrap":false},"0.3.4-alpha.15":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.3.4-alpha.15","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.3.4-alpha.15+1d487b1a","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.3.4-alpha.15+1d487b1a","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"1d487b1a7e11b3f18b5229ba580bd035a7f564a0","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.3.4-alpha.15","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-4d2G+f+19HXFf7No6qXE7dJoBJx4X3EwvG8Ky+hMUsUbXaDWgTGJIhzkiVv7cjymgwetg3hS4yfZycagOfs7jA==","shasum":"94ccd131eea4ae256c3ca1c4e933c941b048d239","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.3.4-alpha.15.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDer25+2Uf1suOuW0HV+xQmBr3LGa4FRfTtekcwnHOGRAIgRCpVl8kXHenLEz/yKNo6PRYONfW7paHjPDtIQQIn8NU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5pm0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYwA//Us2wYNV6EB4rC+xAjHpxbeb9Y3ooo1XPYZLTcEDpwFAbHZlm\r\nOSM/IFmqbErf7WK1S9KV0w38bLQyYpnxOkje9Z2gUKSoRGcer+nKPTRoqy+j\r\nfbAYrlIdalADYnHAe6Yp282+xFVXNkOPvL74IMjr/EHctgHS1gNCzqH1vbv3\r\nVvLf8GyhlZu9Au2TMugc9gqMI5rjPEeq4qRpHw7P5tXsqvn+mjSkESacpljP\r\nmE9iRd6b5zFPiI/G3tGLGabegyOBwfS8ywG5HEM9kEU3Ql+iOdhURgHHAvF1\r\nZxqSOaNEWZdcG++riLQSnB9F0CAHO7O5MxbI9SmWlatJVvInL3fxIBK0k2fh\r\ncz0kY3dl6xaYANGaGL/pYeA4i4ucLm4vMJoTidcVmWgUo4t8GB+LPDtT9k5V\r\nCrfHH3iQOAGai0HkOegMIlrW4AGLBnrrtJizhqz0+YzR/SoHRvzuAR27CbJ6\r\ndNBjVMKsQEwpsDuguZDXRobJtCG3XGPJdX0DZ8XBXpHzcKxdA+HFSyr6iwNB\r\nbsnnEqic7x8lDeYZkEpSF3iypbKYl9yZXQkZFsLg1XVFjaOLmVBAzISxa9Y2\r\nbYvG5H7PicU3JuGCwGN7Pn6CSTmSHWcfOmD3wawil+VY+QruXC4c8vbtw6o4\r\nHfutpV3HsKFt1h8ZbljOK/hUJ+06XGZAYiY=\r\n=RsF2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.3.4-alpha.15_1676057012525_0.8007537203595161"},"_hasShrinkwrap":false},"0.3.4-alpha.16":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.3.4-alpha.16","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.3.4-alpha.16+2669d7dd","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.3.4-alpha.16+2669d7dd","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"2669d7dd3d7c0ddfd1108dfd65e6115dd3418500","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.3.4-alpha.16","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-UfBWS3xg86JbloBsZf5yaLiSudWRbZqb11qAp1d312j3WjQ6PtkbYQtJaB8KH3oSIgedytUSxFOMJgV5YuVs+w==","shasum":"f5a954569eb80ae639bfc877168dcdacfe452f48","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.3.4-alpha.16.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9Vb4FwcEW2kw+C79OdrT/bgP7+Gw6r/mbevp/omjKzwIgZZbfowiT0HKazQK9aA4m8SbdDZ5CV+GD1TfOZ/jJUKc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5rRMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqS5A//esnn0wwlGAZiXqETVlfjGugOYHO+1z+gOrPn+EWnVmAoJx0Q\r\n3TUz2JOMp6/N9de0By/u4YhTnvssLw2PU4ZvibWD0DAM5X/IlIzyxjOpJ0AU\r\nadpnDwBo63sYffPPCNf3fhOfe8Y5EH/8l5IPUm/t2w/eoInzNjcRGD5KCFYX\r\nOBplk8Ae9mg635bF6ex1tPZhbTg6455YBf/QNYEfRX1AYE2PcO7PvMU9q4FX\r\nAUlFlEFWf2Bg556DVIoq0fBGcFCyNI7xcYbUWkPX5bWOngTI+4MuuittUK0U\r\nn3mSVukCV1XdvWgOcc8DxyZJDfpZWhQeYsAGQlRkAS0nc2v60vOIcc0/ajb2\r\n9XHAoDvkGcPNx2NwgFZQX7CpbZ+kJTw54OG37GMtd7eCjo2cwbXU+d9BNaXe\r\nEotm4BcPysjmBteuLUgzcxQTna1QbNybr81YqMA0xXbpKJcbki02PJeK6K7Z\r\nD1lJk8orTYZD4ePyVHfE3sAQ37j7fHHccWX9mcuI4TLnYgjzDxqcIAdrv2GI\r\nY0V473roulnbJSlHtciesmLZno2JYinPD2DDKn9CHmqiMz4/a0bGvejXbcaj\r\nANC2ZDFpc/cZE1PkzmR8/deXO+7hRmvxajRL0A1K0qg/L52b0f6qQcBVaGAj\r\nHbHhzqENZukEBURPbF/N56j7D0Yt5Ah0OL0=\r\n=nlrU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.3.4-alpha.16_1676063820338_0.730006436843545"},"_hasShrinkwrap":false},"0.3.4-alpha.17":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.3.4-alpha.17","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.3.4-alpha.17+efe02711","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.3.4-alpha.17+efe02711","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"efe0271198f21f1307df0f934c380f7a5c720b06","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.3.4-alpha.17","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-6Qe3DBEV0R18w8HrawYYkWqo+7PItKSmV9KPrMtVbLXZtVI+2amIaoiBZGVynlQGU0MQ+xzv1Zi/2mIj5ETqkw==","shasum":"89c3eb7de08e0210b4aad8ec3d9a0bda352b714d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.3.4-alpha.17.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvIG+dbzdUkYlJvhdf3F/50WOpMJT3hwLM7imvenSu2AiEAuoPFtQreCvTARu9bcVZGDOnDMTtcsHhnQ40Uj2yqH08="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5sKnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4uRAAhInulEQ5RDSFXIE++L02bVuhuLDbmmZNIciWxEXcCykxkVMg\r\nLJnr7PfABJ2OWCl40wcab7zdK1WiZrPmDtzjFqTQdB8ozCXCIe02TtEsNIy7\r\nZZGJEAiRLClTkURo0KIYli2DfBxk4vaBaLcuD6Zva01qUqFLcszRNz56qPFB\r\nuvq1Mpoo8kUymbrLFl9/pxX9HF+ZN4fP5K58cELLw3B+yBtNDz8Wi1o3wm16\r\n0Wexrly5DEyICzDmc903+t5dwfbwQIzXcd9UimDgNTIIkuEhbrIF9RlEQhz+\r\nBzFMXpKzpHWH0CvehBbRPX/FasmAaKy1wdIZPSiwVi00u2J2pGw/j76UprMf\r\nPdlOtbARrORh7MsDg90Y73ydokTBD7vRLV82Z4gl/V402tadstHQRNTn+J+/\r\nTrSJgAzS6Ibvfwfk7ICZX5tw5AokJ7tBmlS8r6gKqGFnTla+pJY+aCdirjrC\r\nTatlap2uhbBn1rpCmu/RBx6+xUzHToKfggl5C9CyAYNiMovC+Z//gp/I0pyy\r\nbAGVBpz/8An54QB0b5gl2SH5Byis1E+P2Cuk54J+g/1qzSkZdjSJ/cSGP4fm\r\njTyeqiENJi/PjlXSAsIVtMh13d7rezU4ehVRn1J0HWmzhNQ09rApL0X5GN7+\r\naNJzpxe2kr0IjWg+kfcO0N1wV/18krKExBY=\r\n=zlWJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.3.4-alpha.17_1676067495480_0.5667843470105043"},"_hasShrinkwrap":false},"0.4.0-alpha.18":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.18","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.18+30857b92","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.18+30857b92","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"30857b92702f422db808f372b2416998cd0365ed","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.18","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-MkcWTP5f2zgmeNp7G0ZfQDpf588Fglo4RI1199cyvwU2TA7w42P9i6u+BIjbbJATJQbVi4isuE545b1VadWk3Q==","shasum":"05536db067bea50a78efcf0d75fb30a3d3e95d1f","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.18.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv4VYk4R/30Azh6+QRRr3sy2l+TLUAA312/wTvX6SzeAIhAPTkn1Y1WUCNYuVcD5sYV6UiGk5mA1hA8gbMO3iTyeav"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6A4lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpngw/+NQ1jgIsraYNPqExu7Dd9KAtjZBiYpKQlTP0EF1dka/oxfQne\r\nmPZqTU1BjMs8F8RVMQrWIwdztf9/PTiVzj9lrWsv1pg2ETNCTKMGBuhHyGMc\r\nymTuV/Iy88fGsQZob8bQqsIpTJl2PgkfQ9IQYNGsprQyRWyz5baL4OpINyKc\r\ny1pKq47FXWziJwkxBkZ/0ri4Kybkfubh1fCm5x2B/SaZEa0wSQsUmNtvPg3/\r\nTeuBjOmLbogZO1DK5iXWRtBa39WBoCvRlbIE4ZmsfuFF+ks6i6Ux0fk5NYtJ\r\nSX70eTFmZsG+YenI89SHCz7Rv51EuF4l9yjevguqiat8TP5jA3A0Ej/7tmao\r\nmFc8X1nUOZxDTprA7B4A1YSlUMi0eVBdV1hdMucswmdOl32woASuJfHypRy9\r\n92fE9g+LqwguvL9EHyPU4QFwsuiO1ohPy7tqzMElLPkCAHin/fr//Mun1eZ2\r\nCYb45rLKJQX+kYHFqser36+oatsS0PYjCquGGxkEAi/F3WRRQj4sU8QXX1nx\r\nNPpZr+40TmdpZybmVAg5naip2RIHXxMhaXYWSCV8X3/QF9D0x6mernjNbIRq\r\nkYqDHj5Cvdcev4+zHkrLMbrGOcToSX8oTDz8v4y0EtwASnLgHH/fZPkVlTxT\r\nFelB9glAUY+XM9eAuiQFeqsZ8IFPolzhbbg=\r\n=J8t0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.18_1676152357116_0.31015184743953905"},"_hasShrinkwrap":false},"0.4.0-alpha.19":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.19","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.19+d61f6ede","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.19+d61f6ede","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"d61f6edeafffa771635493acb552e5c89d88626e","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.19","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-70haaub23TmxHRkkIEHAn1q5Kh9HmElHkp+DCLDVsLZgz1seAsCmW0u6cat9xymZhrplx4SVqBGXLRdSMCIb4A==","shasum":"fc530b0359f3d7d406c16286aee1f1b9ec0593c0","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.19.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFQGSe4R9nmS0l3/hBrXoEhI4m9Iu+HvjfR5R2E+SjNDAiBk5EsxC+7z/6k0oXdwcESqZBpBdFFRNN8QIximoRG5Mw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6fP5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOMw/+JpfwcEI6ClsleJXdr2WSxRgTHCk9wzex7YWIz3s4Nc3PRjsz\r\nBYDcUVqR/Z/+EBhGDDKoZfs5etcaEwOXZYlO5VSIi9hEgZhrbbOVBpxAFKql\r\nfVrvGgfE/e3kkf6mISq+Pq1lM6WHQj1PouwqyGeXGCQQwRL89yX1D9RG7+DD\r\nag6XVEMnHkt05HKFYbQW2GF4kqZy+hawaBLVz2bhuEHCuOH5GB4hy8Nj6nKY\r\nQUmGg/nVeL72bCMaNKwUhwb5VtBPYdolfKpg50rVlmOXYEr10y1ud7J/6IWB\r\n9959pPWGxsW1fMexXo18lLHGSiXQzt0/1caDC7Dy+Wh1guqKSOts/ImU4why\r\nmNaVcNc44IU22qEc+cPbDhg2Bavham18MKIkeEwgrYT1NniRWKKofuLuJ+0O\r\nSJ3l7VbGxB+BqXbEaR4tVOyD6+9nJdGj5QtR1I6eZKhCtnfScGkCjA1A0NuB\r\n/0gHQ0LE6GJymYO2XqQf8qS9FnR+z7lFwcqM+JDe8y1ON8PkwzD9yx4zRjfa\r\npwd9lpaM/GWh8gG5kCU29lv9szGCRZGwCmpvvK3gU8tuXjiQ3t5RrHwvjdiM\r\n64TGgX1o5ZQ1+OtrJ68FYZA9kY0oAHf3GQWWJ/A3KN6eRNFaUiHU5fRWt6hc\r\nx1WDqlf8eSrhdo/nZbgGkRSiyq2VCrByJQk=\r\n=PTuk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.19_1676276728915_0.24829235545325123"},"_hasShrinkwrap":false},"0.4.0-alpha.20":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.20","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.20+51030d43","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.20+51030d43","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"51030d43a7e3cca3da29c5add38e35f731576927","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.20","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-57F/PwvpLA7sr5kXDIvj3eYQKJA6UItf3Fcb7F5GiaobY0Jjd7Q99PqN1B5mwuz7IrOx5oTLYewGWCdQ2mdf5g==","shasum":"c42705169beba7fef853f533f0200ccfb67fedfd","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.20.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa2goq6reJhRoB3nPvNKOHgnTZAquyTi592BR8K7e5JAIgBkenTWwlwRjrkIrJ0gQs5DP7K/e0kYPxlufxYZiKe94="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6hTXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUyBAAjZhe9Qvttsw8Tt9yRSv2buRghqyDu//5dvgg3FkTZuz4EALf\r\nDVw/+qFyMiTlb5RIG7RoO61z3WalNyIZQTqUZbvIP2JDUwHK0NoaZsnD8EFy\r\n3GkzV+iht5jMhmJui6iOF8KaMiGe+JmS2vO68Osvbo6j+18Z3wF2adfeDUyr\r\nzjpYu3nKqJSG0wok4sOWADP+OtXExVNnTee8m3HZytlvwAzMSP+l1Ts3q56L\r\nOn9KBooyawAQIG4yoM6sgPWwlunhKp7b2+WFgqBbhKAlmRoTTepuas+6xRp0\r\n3twVN6z0+J3r4ShZWflxntW5ukDf5Xd7vHPJb2bRv04Uk6GOnGKVq3zhfoGx\r\nmwk+tDmHrM/P83xNyY0golxXg9xorX1sjippN5gG6bVcX8A2olg3T2ccUxZ7\r\nUvTah+Ow1mF5CYKC7hb7CBwnHGgY/EgkDhFaxhXwF/jq+VC3Ng/pWz+xsdTF\r\nG4ujlUinOTbzOSmLt5aFf54Aj/fi30+zq3pRqyQuztBu9udVq+QGg7xiZ+of\r\nq/9//FZhCfXTECmAL9DbsimmzrQ9VTiDIKOC+A/qzLt/GXVWcB7Dja41NgR/\r\niNTI4yTOsR3WDz9OslAoKAZHMOqAA+81q7Y3a4IrmYSLJcbb82ypx1z9L5gl\r\nMVYHY/LKRLQ30JaVfJgrnGMBgn1VewOmq2I=\r\n=z325\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.20_1676285143088_0.7249637405854079"},"_hasShrinkwrap":false},"0.4.0-alpha.21":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.21","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.21+fb8d58b8","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.21+fb8d58b8","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"fb8d58b8222b130fdf660075450e762a943c4483","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.21","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-OBcPqhkwtuGGxzlAnPxQkKCMZMXukUd/UiNovpRdcw4X1ALsIfkx24VFXRh0u8yDAJr/QAcw47Tr6MN7cN+hEw==","shasum":"995dd5cf327a61a80bc23fd543b63274f418c4ee","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.21.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBR6XgC1xxXsMsMezegfhkPEX4eCIIbYzW7Dvbs/AvJAiBHMA1ilsrnmz0mTTWzs/zKKq3bZdZgzC3O8U/LMvm38w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6iY4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrsTw/+OkDI6PbexswMH2WCXxUwxtz4Na9ctbMuWoXlmiBWfjq0LES6\r\nMj+PbRWxI4XrAHQPFRAnGPSDA1ou7FZIKa/H3zOFXFS31sy/leQechDRCRVs\r\n/jCrcknHAh5Qn5yD4RfpcRJM7FCT6qJO+ZbTsFv/1Vkq7oIEohR8lv1DkWkD\r\nbKnWyhiwf+qDqIPbBwtBJtDWmqWCLK4pqLo+7HxyFmpCph6d+QNyp8o9J8ai\r\narMV+Ql7WbtB/6d9a4GjvU5WLy5m/Y2R98tEi82BHixdJ2Pt9EYGv9i/ynV/\r\nCB62JxQXAyKNtghdB77rSwaGJaDHoXzvqUGcoiw2tm77DOWy3qvFR1m0DtP2\r\nQbDry2o2YW0iUcrP0xJOSVeCTBAJX6kb6ew2E9JlRDBcRazqFKEVOpIO/oe5\r\ne1QbpxTnBiDRU6Z8khc+8MF/pIeKzT6k812CAIH+WYLsEIuBVHfdP0TI1Dsy\r\nm37jFJ76vuiFPCqhGZIxx2O97AtbStz9nDC/jtZC/OhlmeClnSm7W8lv6PAX\r\njAnC3LXEIVQskUngMMjFE60jDAU8SsOXG4cjYCk2UWhmmMqVpBC2KJ5sL9cb\r\nPvn0lZqnFgEJuxGDdjqwwMjE+RvtesMOKxKQWkFTbuDobpfRIY4+8dyQqJ+B\r\n/cC8oJM4e+W8w7NWlDfbTQxJyfalAl9hn8Y=\r\n=ZwDt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.21_1676289591980_0.1434644782066672"},"_hasShrinkwrap":false},"0.4.0-alpha.22":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.22","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.22+231145f1","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.22+231145f1","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"231145f173a5c829e6be8e248f77182eafaac701","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.22","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-dkBCzpFf1aExXbyKvBRx8sVsvBc9wXbvH2Gk99gfZHwJ4q6znznU9XUKHDhdCvhdWqa88Nn5Ta9dkq2SJ7Yd5Q==","shasum":"dbab76e9586f4d58a77e86eef82fed1efb67e842","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.22.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZqG7pduBqeZe1clp/whkw3PT9zYVkRujleGKoHSLURAiAQW16bt8NVZuumq8yqGgrBEL9raaAv+Y2IdDZOdlur7Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6j7MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxeQ/9HKri9W7trkOgWudnggyW0VVMyKheOFryVuV2Dog9GUrFFMZG\r\nymHpCoceTaCqrGvzA1FHIqVODrJ4btwSdq8eOABWCv/ltuR4OV8hm5qOqScY\r\nGeghXl3VIhzRdKlBtrFioU0jgPj+I3EnKFIryisTF7cGuFGBeolwtcGBdVdY\r\nP0KwYrDg+fbbRQcKuV5ANksODg6GVwFxoCvbBfZhS4Q0uJUbJ66nQsg973Rk\r\nH1MsaG+n7p+n8havSm5lVpG+mFljHno52EdWViJW0ix6uwjh1uDXuq2ryQ87\r\n1dFb4xFG4suY/0dqpmly8pekeekNaF2iFLMvbcYOrApeHb73ayKY9Rk+Gvl6\r\nN7nOeg92kWb2EV0s0Q8j6jHE2M4BqXlGFQDvO0T8wqDVQvUUVJqJ6uuQddPJ\r\nfkAZSkJ00MtvOYnaLSFuOYm069ANCq7wOmrvyc/rXtlhBTkYEdWB9N+zthGf\r\niSB4RjoA2IRVLuOATeyVQQexTuki3JN6NOhbXmegl3rkk1fa/jnqC+55+zC1\r\nI+2k6lxAt0EY/Q6R5B62j6JKycil13ME+7ns8lCNBT6NSPRMyfPohWLKsbLy\r\n6IFdINT1plr0Sm52mq7e8Lp5gpeaPzURxtC+DlHTyIhxIhgBv7RJ8X8RCqQQ\r\n3jh24IzV/ZLyx76DjfzzZ9XSTS32/b98O3w=\r\n=u0Au\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.22_1676295884287_0.7590451705782733"},"_hasShrinkwrap":false},"0.4.0-alpha.23":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.23","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.23+dfb3eafb","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.23+dfb3eafb","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"dfb3eafbe6a226becb0dc908206f227f45e22308","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.23","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-ANIgTG6WyMrjasvMoALqRavbnOub3P+Sj9GRfsdiBk4yTgUzy0Er/50wZr85mYP99veUqlFUBaLj/439bq4s3Q==","shasum":"5380bd1861d5067f7cfbdfd24d821264bca561a3","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.23.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9mbyWuJAgtnsRdU2+jkVH1QfPY4pj5TFewrGOIJyBMAiEAuSQkiG+X2lXd6ETBQQI42k+lQMkLlzfqf52USdlK+aI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6lavACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFxQ//aR/TZUfv/v8Ow5cld6XNqpGfJrO+fwK6hgFaamHYxHJxZcRr\r\nLs6eVl5RPUV5YHkdEuPjPuUfJY8GvTM7gTlLbkQeki0+jVfAcRocY4HTjmq9\r\nDohR+SNyK4GsY1BVUlnTdKxvkIZrsBer3SfaLX8R7EdBLiThe2q/dBMKJh/1\r\nol8AaJFaw6pWvxb0c00yjrY3tJEefs57wt/bqhuv03yIKfHRjsKpH0hgvBDO\r\notXUYNk9oyuVt6jZuDCLNaMXgPrNoF5QKnsPMeA9kHNqVQpugvK/oyWu6F7E\r\nhhpIriWhi5IT8U86y6htapqBS4NZ7xxuc5dlzuMZY20MYGAgfc0YbCuXZ/IP\r\nohuXh6lcBNbd2bW3hJCl2RtivnrDygYBr3OtMy6kY5Z4IIEX42ZvMxVToBjB\r\nIrc2YAMPe7IEEqTosbOLTg248nn1gZh5/crrsKrOVhJXUgOG5j14PFsER3I6\r\nZu4V3tG/p6mt0endFmE57qMzl3OVCK7j8BIH6r2lwEgqvOjVGCvl7r0+S/gB\r\ntRq2l5nXCyCJ/MtA91GGMGP4ZrAD1ZJY5p8mU19iKEyWXI/MGePwXtBtjrIs\r\nXT8DeL9ScLUFgu5zsKn9jfCuroVOgQNV3eKAzEMf377R3PANMOsttD+xIAvw\r\nnq7FKQ+ZNuNi7NQYOZUBBZEN5H5cP9qbY/Q=\r\n=uWzo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.23_1676301998927_0.19662509089809155"},"_hasShrinkwrap":false},"0.4.0-alpha.24":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.24","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.24+c72fd741","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.24+c72fd741","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"c72fd7416f2c1bc0497a84036e16adfa80585e49","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.24","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-8IqNTkBy0ueqJSuKaA9qXEXYtEbCc/nEb+Q13Q88Eo4jO3M/PU6YnSfw6rzepJNZbqIdkRVaQXpkmr95cBWX+Q==","shasum":"0cdef4739e861458c45ef074c3b95ed4ca6c8ac2","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.24.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCequqWynEKazT4zTktRVbQepbbxMSKgv0waPYgdBqw5QIgeU9hrWl6wBTboVreooDzsRpNXaq05Au1zlmIqeWJKfY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6nbBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3SQ//Sm6zEwMPscm7BQOeP597qFGrAADsBxy0CEop8yaznvRAseJb\r\nfJNw3zRgjZOKSJwgmt22r6lelYfmonvcg5tRmenGk9H7eUxdde+NK7sac05z\r\nZNEPm4MtUl40/5GHAYTTVfcqZbuY1elzOixgnw4YyfXobInAdyZ3luDGwmk+\r\ncW7nE+JTTcSbdJ78dQRL5ga4eAqrqPmL28fsGM8EdP/0gUE0CfNV2Q5l/NKX\r\nuDWAT5a+yg4BN/RGXBnmZnGU35VHetVaffiFZT2IDsxnmjism+k8B1gVy0xB\r\ntA3ZEG2UD83Tt7R2LntREGiIyJfb/Vdji1m5SpXzqBSy+N6hlF0Ma0ZGg8Rh\r\nHiI3M0ojCIVNwLLz7pv6V8M/c7NXfAD5llzwEJwJkUWXPAzSQwZYXNc8V744\r\nM7SwDEoLmyKx1YDMrr9kTC3xqnjOYseOVRfJU7I+uqniwQW6tBEuINZ4nBnB\r\nT7t0cpTqkpGkL5fqQBAN3pzhU52gHc94zISt0lBfTOsGdFiVEr9989yaJzQf\r\nViigb6xjJbLT4XX1QydueagjqS7UpIrXMldxTv8Hf4sOCFWK9xcayCz/RwH1\r\nYZ1a6jJTyGsV81iDDvBRyWtVnCxIQ9RkLWTyLVg3QjdNqkOcVsJ1Ikhj/vrm\r\nsC18p1WlwKGfgP9BwjvJ4ojylbjsLXGUmks=\r\n=PgkW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.24_1676310209381_0.36122795197881463"},"_hasShrinkwrap":false},"0.4.0-alpha.25":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.25","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.25+b570e0f9","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.25+b570e0f9","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"b570e0f923fc46adef3ce20ee76a683a867b85f4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.25","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-G0lgXzfVHwcqQOW8nY02e0bgYRt47xNQGu6TcaXImgkcJtX02SKM2Os7drNMwXFjeUWrgviYEANx+cxCiAp0Gg==","shasum":"fe1c0adbb022273e667208489b7084ffe893381b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.25.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECTpRPhy8g3/dsS9YDO7dCUzx+VVBFMpZenTwIav1amAiBRlLwPsNIqu/z7fKdXkAGwiQrTCHzfQtR+j7Y9XJw2sg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6obWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmou3Q//fvlRz4Bnaz6XoftPuOptXJ2hQIXOANWH2h37KGP7gYfm/iSh\r\nbgDPcr8cGtd+zOl9YM2fQ+YB6STQQl91IPwk6K/2GBxLD3BpeLbWkIZosd0K\r\nLBQIhNrAya/D2cV8ruvYH5oCA7C5MK04LU1uhjumaalNPd17eXJTErnVHphg\r\nKuqUIIp/6khNwIG/Yu4f6H5w5LBd2/4BCkR/7/tfQ0VnnCQ7v2al8/ECZOEk\r\ns5gXtKlh32510c8GRf5WfprJfOIAHxUN9oCP++Y0PgY6LX1u8mHkktTEuQE4\r\nmDJYB9o5pwsL1FwYiPcl1BLyNFr0czFJ8OUd5opOfW4Np9huQ4//1P7fTnLm\r\nbET/dREeMCd93ZW34MEwgMqvqcgR7p7/lK4nMBbYOmx5H86jAQ+Z+NGkWDs8\r\n5YatWzVAl0H8F9kBypYTrtPUkutoRv+0M210ZFWOt/i+8kHPDgtwJ3XwQr3G\r\nxzu/oUf+WJgBglL4XkerFrmEvm5VYdWgmYRj9eldEMXZTzPTlM0+KgCxoNKV\r\n5QLFutLwnup3KlkX+Z8z/UIUPxb2aZRluWprY3YwgJ8FSQZqulBTRNVBNSgK\r\nRs6qlmh02CNup9eAzhCZEVs8cr7FjYsTBLDK2FZTCS0UHC/jCVtPAw9vxqWe\r\nlwU108c+/DDM8AkMwWwgwKmIup0gTkntK+Q=\r\n=IZ0K\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.25_1676314326299_0.06664187581344994"},"_hasShrinkwrap":false},"0.4.0-alpha.26":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.26","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.26+c63350c8","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.26+c63350c8","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"c63350c855d7c8ae7c3e50a9a9659d69ad0e9fd7","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.26","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-E2YLDImLISnaip0tTZzJuYmxacI55+Cxv54fESP8Tt4YwO2BcqsITIWCN9DoMO5yg8oA5BSjvDUoBWcBTHr0+Q==","shasum":"339b46354837c086f5b8e0ce0dcaff012668a1c3","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.26.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjxjt66RXmij0iC/OL5VQSQmzCOfw7U9kviGbY+GchOwIgBDRSTXxph+Q++j28VlP1fcoRTfhMo1AH4kt51mT3eDE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6pglACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1khAAkFpRtbUNAvJxneyY6UDHssfQroJsNUHP8mScXtpLxJx5n+9o\r\n4w9fSMlRGuZGoUC9EuSjRAflya95eNghok2ogtOWY2s7Cnaxwn1hMhlm5aH5\r\nz1tqQf5BM5l0Sa0Gv33Gao2cDYJRA/Ef2biUqgYnMIoFVc4DqtHldA6mogsp\r\n53rE1D49jAvVpIXBwlLy4psWX9e+t7syAXknLroOVZeK5oW2r/Dg9IS2dvKT\r\nvAThMUiBDcrmjPAgwcnX5g5qEQ8cddp6u5mmKB35v+6D5erTLP3uWR7LK4/B\r\nP3RhrReFWzYwL7eVdAcYiM88c42o0ON/wHikQ49G/0wxk91pTSq1YNjtCanh\r\nFLs9qLI9cjoWOV+Ke1+fRitQkrZEHnJ1qrdiOki40P/xI4TXfdDILo5Z5+vv\r\n+FYD3uUuUi515k+o85X6fjyPGFYFM4JUMuRdkKnsPp2/p6adtFy1AvfDQ+6R\r\nVQ0nC/n0HeJb+l1uzSmqW1m/2qBUsm8Lz0PQYJT5ee7uyepk/0PTubWsMOTr\r\nXT+OlQ5R+QlCiYnDAR3KVSB4vBz5AjWMZWOmwKd6zcjIjswFNOmRip5qFPon\r\nRYXTpDjm3JAnjzEitXkx2zB+TqHSvqG9l0MrSi0hp4JJJeyttIWoWwddnYu7\r\nmPN7t0ZcBZw63GSUC7REYJTIEXgPR/Tk8gk=\r\n=r3/3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.26_1676318756931_0.19697457838023213"},"_hasShrinkwrap":false},"0.4.0-alpha.27":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.27","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.27+ecce0a71","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.27+ecce0a71","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"ecce0a71578f45f55743198a1f3699bd257dc74b","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.27","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-uBt/bklk51+iVgDw/KS0XRNgvKRXpZlM3IGrd1LElCFJkdZCN/fnUeShJ5Vv3h+tQsIJkPVAGf0etvlPZo8ciA==","shasum":"9f71c7a758edde5bfc96f975a1d811e57a671204","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.27.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTHiSuBiXHkQ/7HYEASobFYdOZ+G8TuqnC2UTXnr66bAIgNrNiFDVYyR1IJNPMC/6MMMa+rAjx9ainh18kthMkb50="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6rPmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrafg//ewz6rI4FqZulOQdh/EaYJBE9yrvairbe9nUUcoVqva3uQzyW\r\nrDVLHaT+A4+cae/X1iDsUoXMP2PB2CWakuwBT9hNF7R51KxtocFpsyZCEkGR\r\nnAdyG0J+POPhKxy3iArYl0XiuEedIw3bh5Oim8RIQS/JhHIyVVuQpI5FfHL+\r\ntUZmo65e2ZW1AZMxCbTvbJGEej1C7KOkOuannrkUCqDV1cMvKJrb28WxNkry\r\nsEofWpD0qe2LA//8OA1q22lnpsSoogNpV4Db/IoPjTCz21oKnlkhefy7FYI6\r\nIN9ZCA48yngmZoVmkpB9bsoRNKoSPviQnf/S/6PHiHu3ulkrxXE62ZG2HL+A\r\ng64Cap9niJH0w3n20fiAgQlahQR/XHX0lPj7fyPJ8b7ZBiK8hkEIr3Uok2Ut\r\np3+BIMcJyLrgX3w+0liiHN0UNiazz/1Xv4wREBQ2PcfqgpnS1NauCuijXzxm\r\nLZyuSO4HbXLBVXSDX+wf5gQuMu+0YnsDF+S3q3TFUVvztFmUuWbGXe5WwgqB\r\n+z6LHtwEJTFUM2woLwv81PV4Cs/eBPNTXYpjR9k3qM06n8zKt4dKRVOKei/t\r\n/eefjBYiXgfzZWsLwR2xeRlzOOMSd0HvA5nYAHChAL92qyMZuLpSKtnYErhq\r\nKeAi82jP4E7Zsl7YG9O2+5eG0PN9/YkjAMU=\r\n=z/LG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.27_1676325862129_0.4017724925419395"},"_hasShrinkwrap":false},"0.4.0-alpha.28":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.28","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.28+a4877053","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.28+a4877053","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"a48770530fefea5efeb5eb7a010e600ac69434d7","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.28","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-yqqRomoyU53AJHGb0Nud2e1CaHB6mbt7kt+aBW/HFTUQcgo84O4OJJQdFDPv9Vj5E+5cm4Ub7grwF7VSI2GgXA==","shasum":"782d9fce454b38499b769b3b4b17d757f8a55c4f","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.28.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD66myEl189kXdfR6AdH1R2KrVz+g11oaxLLgdU2+6h0wIgH1x17/028wMSJM7w4zov5IKkOiYL9LJPxklwVQ0MtXM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj61uoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+HA/+MBByFU39tytrvMvGx92+inK7gCJJsKOH+5S1WhVXS2XUnx4N\r\nx0fT3a744gPvNZfwcJSYVYJVd6b9GnwJwQf0GBnBsedSeF0CEbCVe1mBwiEv\r\nX/vbOs0sLnuS2ffSuWSj9ymFdgBmc/oNUi6vg/H0i2zuwsWTcsqrl47XI3bg\r\nzVVGtiKn7zaHNrg3nsFcy6MDf7rhE4xQU6lHVzN29Vd/dZir72vGu0dpVybQ\r\n/fYpTacrj7zOFIuro9U3v4F/KDFSqGCGyi0aDFwYpI9AizInZ0Ra8vsMVNmz\r\nJx7n3ZdI/bG0NzjKQFl52Ph5RziqMymyOF5nESI/SFw7y7vOqIhoTbcdCk+N\r\nlYDsXB3P1jFr/QXsSACK41eccJEowN1GE0IrMi9WufPexmq6yv7Fr68ciFg7\r\nCkYQH+THMMWRfflizik3xC/T3otPV+kUPIUY9XlbDL7TeHxe5ZnUOrXH5rUE\r\noXWmTrwX0lhKHMXggN7YeXNCT5ZZk75BgKOdMkn/5dn3tTxM91LeXiDT6FAP\r\njfudiZTfY97iPFr/C0Qpo3qE+axwFawxxjPt9TO53omBZChhAFCTkoLo9ZSS\r\nQMmTRkqoaGNvg5PFA2hiaC88KDt6W389P/i/dQ3yEv/wmiF2jqvZycZr2nd0\r\n+OQmuvsLeVOP64RchugnKbrdjaghPFukiZU=\r\n=zjbm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.28_1676368808100_0.9340672871358904"},"_hasShrinkwrap":false},"0.4.0-alpha.29":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.29","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.29+efab8ddf","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.29+efab8ddf","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"efab8ddfc34e47a3f0ffe35b55fa5018a7e96544","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.29","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-NSYYCIe6FQ+LAQ3A1QfHqcwvARs1DfW6F48B/gNJ2sq/g0sSiDba1G6qwQQ+8vFBDTceMmla3QEM3x15DNljUw==","shasum":"0e90b4b7904487316cb74d7ba6d52c0ea3e266c1","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.29.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWhbSCh77EwjskAUOT38YM1VUPBzdGgndDOb+5JEeNXgIhANhAsD8cwBX2nkwIdjAUWLeUaL954d70bgpXHEeE+wa+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7BDnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVABAAoxSzkETWpKCOaUuCc21SGADpi3gUhZnvdkAs3vPoWDcxhBFP\r\nLgiXOUfwAgC7p1drVrf1lEI12MhowOiqcWFFfG3RQk4cNQu8V0Y1BD5lqTbW\r\nT4SFeQOwtBLJ/DMruu4En9TICGZPtNCb9kHAtqok5bm4Uz2r2MRDvbG92Gts\r\nGX51HzrEMpHeMZTavbG6fiDf3lsGvNaKonBakaADByGPfws4InvWh79HM+aL\r\nSKubDXOAuqqHQDJscDZjJQ2XHUfX/NcGdwphVnjnCbNx+IGRqcyFPHpPH45z\r\nUCzjxQ/APhUHQEAuKNP9Tq9s8uc2Ltzs81BRm4LMsnhHxrMX/YLPycCr7q3m\r\nCROFWy+gZTWMz3qiLrfc8/ki6JBaYf9IyJlTYjszLWWnpCzKtTpKayJscXyg\r\nidbDuLfqMdnqLbW+uIxa68TGRiXlHqxgpZnT8acaWbTBQ06/ZNrJ1PYKkAG0\r\nyU319x1KzcIW8Ev5xhpm/Lk9YM8JM1C++XbwkYm5pMLoZVm0xpXI61T+4Vkq\r\nxoVngFZyJ05BGAOLrXIc20Ak61Ar67+d9G9QqTsfgaRZairasymsN6rdaDkG\r\nGFxPf9smvJJQAa6+Iq4o0UFIQmKaczodEMXLI0nhTJNjXZ0VFN7/0MQPnnQw\r\n3YhleBv3iUdpUNJM9j/5IRGoVemIkC+/xNA=\r\n=Rx3E\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.29_1676415206923_0.7823558696521977"},"_hasShrinkwrap":false},"0.4.0-alpha.30":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.30","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.30+4ac53323","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.30+4ac53323","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"4ac533231ff8126c73ccc071adbf5a415fd3d6e9","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.30","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-83jxguBnFKn8+f4IQiGMLQY4ePZED+TxDvlHcYTeiz9M3Ac8W13atVXbNFR0XKuNXDGxMaAd2haX8w4dkecoTw==","shasum":"de25d6b6d6f94c57ef68e5b8d1e42535dce6c1bc","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.30.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGaFegv30Vzy/bENRMe6EOFygiSiPPDUCDqm0w3aPYUqAiEAwI5DEI25XxWrIRkfJLxpfqJD5/5rlV4EzvpJXwVomVY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7VlGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPbRAAk1Nqqa5rdmtpvg3drlbGdAZS2LK2aTv/GdNzAvhxL2SjVVEK\r\nclNyVtqp3xwCSZEDZHyup6pStcKeSCZuxKy1DFmRDXA71fYT4UBAAyWDAF2y\r\nCvkYiRZB91dHCMtlT/r3AdalmJa/OLXtqDxZkt/DnuC64z33UZmKFtPf1PvN\r\nbw/YiW2NlrUj4lIEDTl5vwgGOiGuV/fTSjIL24G9AvJIrXuyQHaitqj+iva+\r\n4BCko0Ph0JLxVCYSe99di05O+YWGUWmeTOlPQB1bfgbKP90ZjQaRe4q6ZHr/\r\nnJlpbmnDhgyOQo8mUWue5pcBimMMqmZwxDy6PUINsPzl/NKLneA3OawFYsVx\r\nZzC1DbPvSTjJR3O16YiQyk3OeqApkJbL+mGy0KiPg+lgRx9VxRATluyIePk2\r\n2eOd3Wjyl/wbiIcudicCu0PLQl80DQ9EWKCctjbbdMS8K6kJ/grAQOcO+05I\r\nZGjkStRSzvQiBvouAP4jjWgEWgpAUntKitXkwfCT8hkrnKJICaDTTZq1+6u0\r\nyD1OVoW4k38aUso3k6f+FI/zoI7ZMr0+3IyMLaVIybnn5bFx6Z+5G1wryj0F\r\nvQijrdagqP8NwxtwTMQp09LTxgf71ycgGwmYhPml4D3cUkSLIUcmoKTDP2Z+\r\naS2PwVTauxdHHwAk6Ev6J2DmcIGZI6PV6SQ=\r\n=f7I/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.30_1676499270471_0.8427683306856029"},"_hasShrinkwrap":false},"0.4.0-alpha.31":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.31","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.31+3e02227a","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.31+3e02227a","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"3e02227a7b23677e9886eb1c03d1a3ec154947a9","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.31","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-m1ZWcWYN/RomhCwI14aePkeYBeaigZs+va+dGILyawDpcTsCkkfjwy6fGw4aubqJIDNa9afBoYojL3d9GrsIJg==","shasum":"492a370a2096ebefcda21c9e13d86bdc33974971","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.31.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkbfX5qUOVmG0XM+/kWtbFB0kHTbZlBQIEjJWR9KYX9AIgcHEVAJZNC7SRLSZvDcYgVK+EwQTmQ88xqTx/3luP9jw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7Wp1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuBA//ZDTPrzBhhONXbwZkRgeoULgxVINFuqjDMirFozHIbu9s4QaJ\r\nKOrPABfnKBp6ozymyf8iu6ye3GxDP3N6Td9rKk2B7vGt6gi33o4DQwXj1BtF\r\nc4tY8k+RnO9WL0OfkHzHWQX1XH5vsGXKpNuJ/TQfBm1Cx+KYipeyDN027cs+\r\nUzPUw/TGo48/T5mrwwG1+hRFp1hOcchft10kT3/T5PovocR1IJjvFcPC06lU\r\ntW2kkjXAvhJtKbIpkjYFe7zEYAXy8nCpmB6rlsQm/E87SsUVwfqP57q2fXWa\r\nWgkNZLh6O0M2inJJEwnzi/taeU7IyoeOQd3jGUMHVzzFXLKw/fV2i1QdHext\r\n0CmNrtPEtZnZlUufycvWXhJ9vHuhwhqtHcwRf7uN6v+WErO0RlksAUcOAo9E\r\ndQ0YPa6h9cWiFOmoPpxObZFVM7+Yz2WmG5pTjDqK6zAKWS9updgkWWakmQT0\r\np5nvi6PNO3rpMYCaozbVAwHVup5m53WtFyrnU4xhyLjtblM40Db/xScD/2/O\r\ny1nLwFXmknrolB8u/8vW9WuiSn5itASUjRPTMSpFuH5H16RnWHAr2YEz9P+y\r\nDZYVwKtnvPUUH3wftGivMfnZpcSY99emYDE7U17PF/FcEWkoANBNhx/4stHp\r\n1JY6Fgr7UvQUq+CS3HCYfRMsPuY7oONrVz0=\r\n=k1bk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.31_1676503669174_0.7229126426986818"},"_hasShrinkwrap":false},"0.4.0-alpha.32":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.32","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.32+1d782f54","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.32+1d782f54","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"1d782f54bbb4abfeb6b6db6cd4f7164501b6c3d9","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.32","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-j6kYIx/K1hoD6qbqdD6R76cucyLDno9X4ik4mV1FDqYOqAgF1cvjqbaVG6MIEZswevuY8XrFh2wq7OEth3uTyA==","shasum":"0ee7a16ec735d51e9348b88db351af2a71a3a0a7","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.32.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHMgWKfPfpTYwqzdIVySgeS64rKFA+PPrySOHbj/EOPAIhALoS6R88y25fB2umNz8JKLANA2JtWFG0C/jBE40f7kxH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj79HhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohFA/+NL6mim+Agj56MnkIwvYQ5DsRRASEwzjNvBSKjCSL458Ts93v\r\nhDVAbiyjAQ5E1o8ldWQ1pnQvqISXrQGlWvRIQjq7Mvp6rOw08Lo4vBfSPoE1\r\nvlfA1GxWtGqvAifbX4PDmPLsItfCit9nyrLcGFOGHX8izpfl1OV6xnET4lxq\r\nI0pKoAiPy9eJFSdelSgiWCtUE9gvHNVYf8zysGKKhExQnC3JxXqG3DbC0TRc\r\n6TayhYuRzd4IK2KkZQkFEyDjbOPGjT6Y35gQSHJxpHU1VRMkw7dSlVAUreId\r\nfDA852uGyUn7BsXFEeCZiM/fRXfheeaZpa3F1wHuTZcY1/ZUbBJb68QRJA8f\r\nAdME6xNjbf0bzM+lbR/lLOpapL1/+oCtPfAhzXy96hgIWkQBeWibaLj6kSkU\r\nY+FJTFjRwYEgIWY3fjqBF6FvNxi1TCPlgrFsI+aj23SF3i/89nalhsd1Za67\r\nBO5oeYfzmGIL2dKujSepMP490zSMXcplzzPcI2bnRIJBkAbTabIKItX9DizP\r\nooy3Fo5ocLmyn+xA/9bgH6SSagh0UUEzZP2ZZFkWBjpfwe43JO7f64S4dmzc\r\ntNa8QruTwx4MDbnxtRwl7jwokm5Xq2vhnkoc7jLxML29OQ+Pp5gHd/ECRSsa\r\n43PPrdWS5ekhgwx1X/6fLdQfs/NmNAJ2kzU=\r\n=F93A\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.32_1676661217335_0.32578581251553596"},"_hasShrinkwrap":false},"0.4.0-alpha.33":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.33","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.33+229ed1b9","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.33+229ed1b9","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"229ed1b9540ca0c9380b5cca6c763fefd6628960","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.33","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-WTujvGKgVUZXU5ia8ddusP75+cG4FNSEJMx+cPvktsfh3RFEEtEzKMwO+KnYG7uinNFcEozjGY/PHuujuKvTbg==","shasum":"4f7449aaa17a5e44ee9b4c42a889ca25911d292c","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.33.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCskxViHmSidFoChvZe2rVkXOmZ6GbjQJvWImTm325BhAIgY9PJ1ZOPYwLWw0Ef+W1LAx9g8ihHzxPEF6qHCOoGYaM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7+TJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLTw/+KqbmaxKIKbz549fmArmjEoZVvKv7WUHbSBaZjNwAaAp8yYwq\r\nn8dx+K4XiW/Iuasrg4OFpkyxcPMy0UUQAe5BJJCq4V1keRYmAc7quNeKPflX\r\nBEujrHtiIkykYBaQx3hWumBtE81gUdwe0jGexE//QLvKdRLItgmfC27jtmOs\r\nWNy4+EYoN5s+oDOX+QDVLTGuogyBXywEqeuW+av11c1W0A+wfECNt1FgUHPJ\r\nGqJynw2strH4SJp4zKeSf8VuD4dDg0QHrPuX9+W8ZCDlF1P+q4d5uNqKR3jb\r\nae9pr0YShnOI8e25veLMi/lL+A3wJ877FPEzuQkaV3nmcaO4lxZMr5E7sFRb\r\nRNRTUpQbirqI55VlwdWiO9djhsKJ7kCZOcBFwR9tM6V2gQQWfU+B9elbuZe6\r\nMUGhye51jB6NoB4Ln9UplASZo7JQUbuftXS6eqkjJhFZ/GE+LfzdowIxxAeT\r\nOksUJw9eDO/xnJYuwAT5beAmoPx6SRDZTBi1pu05xf8B1hefZQdilqHED1Ho\r\nJ++kf3sfglHuSZXaanPHwlEj6voO/Dl9nWlUBs/aMwGYNSORqm8kTzuzSA+v\r\nl9htS7QxWLISTixjNwlPt6aBGuQLwjMJ9sSCos83rcR4jl+r+0m3JCXATJXw\r\nnQZZFIJBHV0aBesRHpN806Unn3KvYwFZp5k=\r\n=Kw6J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.33_1676666057037_0.8619123438330822"},"_hasShrinkwrap":false},"0.4.0-alpha.34":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.34","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.34+af384e8a","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.34+af384e8a","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"af384e8a92f877c647999f9356b72a8017308230","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.34","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-EeX1h2q1T+eTKxefBEz0V/IW+lRxryAa4Ha3FSQqL1nQgnxsQNBTZsIvY/uPbs1kbPT5pJs0rcxmYExE6cckAQ==","shasum":"82969275cb1c339b92a4d3bced4b04b928d34758","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.34.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEgxSmHJMMoAC95q0vy3hm3fDAqH/95A3sTMCAzdi+atAiA9DUZzZi+vU1JIYsScoPsjDe9/hnCTckRDIAu1kDSdiw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8B2FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmox1Q//WwloSMc1Cif00g+5Fw4oziCdhON6z+0wRVnMIOtHqO6d4Vn8\r\nYvESt9F9r6N+S8hcv/GweUKVu8P4igbaX2f4bOG615vkhwedb5UPBGrGS4Xz\r\nvCvGLL7SOGOoFJzx4gpK8ar4kytV6q1UJWMVncAmd8W8zSWFbV0Q/Ynv7LDG\r\nYbzEJKScNgVyOJp2bR64XOa4DsYaPaezA23neyBTByzrukxV5tBVkbUjE9jq\r\nCJp+TrgachiI6OW6ol3aXSt37wBSwd/naCRwPqFTajg4xTG+gBfhXsM7MF5f\r\nS1w/u8t2JgNX5V4vmm0IX6vnE1bgK2LOyL2bZ1K6K7ZTe0dcQDCT/PG6Cnx+\r\nu3fqja4egUB9z+R4+Wt/yN+BX2fDtcPXxs/dpmFOMFm6JIgqbZCZmrJV4H+h\r\n5brT+mszsx0hG0WESuFIi+8If+UEq3jS+7cz9C7OmfTc2oOyM4yep92Ht4Oa\r\nUjMjVblQ27uA1H4dpuYoF8A1BDhdZ1evZYMjhTqVUHANu7EQRnJ29ocCE6r1\r\nW6aG6HTWLhO8QlykTuflvhHBdjkjIBt/p2phkilE7lmuh0kXvP2K+vGFnsGv\r\n0FMKdGkdkOpw4Xl8slCIYnjH062OMjIg0F57IXGujKepJb/X1EasZpuhSEE+\r\nrljN/RddiyPHHIkg8JPkKhHx4avb4LaGnro=\r\n=xvI1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.34_1676680581058_0.5757342330635022"},"_hasShrinkwrap":false},"0.4.0-alpha.35":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.35","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.35+ff5596d0","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.35+ff5596d0","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"ff5596d0631e93746494c017797d0191b6bdb0b1","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.35","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-GgFu6dst/vT7zK7S4YGki6XxHM7MJaS8GnveeZ8VpKBVLDwmYkMs8oAA+OIyMKmIgBl5RI2RKAAMsRnNQ2wVtw==","shasum":"3292cd3c15609847e1af131e8fb7c5e88e69ad27","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.35.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCr3aFoT5yUtd7BNySMFFbtxIAPmAwdV0SZ65LcOKQzQIhAJZcoAwYr61GYdDGNre58/FuRxreL9h/uL6sxz5Pw1b1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8DQdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQwA//eppD1vMqGh/Wir2IifCYL2JPg1lXCdkOCJcwnQudZONESTak\r\nd9AhWneK7BV+h6rstrtw4uvH+Py+fHpAewwF19Gm8rtm/Am3TDzUzS0H5qvo\r\naf0IT4YGVH5rP9X3rDNaZwvFvZetw24utpcDt0KzkOFKmr++L5AwcvJqulMZ\r\nhZfAwgsWflTiX0ueiRWczoDmyRD/MBGg3ncTw6NbCapTCsiYdndPjLmkldiv\r\nMP0Qvy+UrHcFXa8b0svTvpd9BvVtoAu+X28ZMy98cInvm70yk4uesM77ZSjH\r\nhn1LTavb+QSP5ftolYcSi/JQt1ynHZUc5bPpVyHM0fpvQNgxVuYN9A+zK4I0\r\nP9GJR5VN1jUlni5BXxnT9/EuyC4nF8l9wrad3zvHbp9SG0FdKxJr4ozqqXNl\r\nwTbLCodv+sXvw0S486FQUgrrGj/wMo2jhHsWaElxhhFDqvXZO2yS8mAwhlW0\r\nQJpLnOLHMP71d7VkQN2GyBVBHRzaUodbJ/Q5pr6CicGbXtQnCWSTsJfT1JTn\r\nel8M89hq8l+Kz4tpHvtuNXY82s6HbGxA+hLfhZfOXi7e7997MqpHIxB1YN7F\r\nGq8V2zP51Fk7CMC1uBxSHWM4f462ar3ZtgN6xJqk5Tt2nV5ZR5G2mHuQmF4Y\r\nwjQy4oWYlvVjzPfLTMu3yVBubJj8QebGQ60=\r\n=0a5z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.35_1676686365105_0.8109365789677931"},"_hasShrinkwrap":false},"0.4.0-alpha.36":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.36","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.36+64a5da93","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.36+64a5da93","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"64a5da937059d25e693e2491af329548b2975ef6","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.36","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ogChjNk1i7T+zk5NQ/zMGky86iUfblyYSrJqy0WgdAiN7OAib4WJUKj2+9MSXzN5D3AQwQY05Jdccpdf1D88Wg==","shasum":"868c42819ee049e6fc6c3a63c6e483886b8dd4df","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.36.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICT4wu4UdgNWqo7GdusVf4k5CAqHR9IROOPftDG0NgHoAiAlvOvm8yqb/G0bphUTepItGKrJTnL6Pu8oD++sI/Cnzg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8S2FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmralw/8Ci1x8dxJ/EA3Sd6TaDjP3xB7fT0iC8ksTO/KCUllPFU9MjgH\r\nweuBx0hWi1vJtwUnlrQH3pkqt3ydBEmJRP1R/ZVxRufzwiKlEIzf4uFcsY9s\r\nuFBhSVZlgb46SEcPTpBZQ6e+1qaZ6OoUyRl2nbjC28xlQAfgn0tIg3Saqxdt\r\nY0fliVAXJGt3n+kRACegehdTTCByS2EKbIR9aSHa9HNYrQBkyvjZAnQDX3+A\r\nA/iYUIfQtOsq8B09ij6f6BS3kVcqd0YHVrX6TAEWBj7tU0I3BRXzOlIrrM+d\r\nH6PRqnoj/9VUYIJl5jUw+XKYAES+4UARRR4BZrSvO5UL/ExUurBhe+Mz32gh\r\nc/6V3YclzRtIT+iYs1WE94/cqGrokvW7i/JftG52Gh6Dx9+aSy1YAjdVtyDr\r\nLKuwnezNArGuk5jrLdnsrolCtehk889V5VwaQ2ARzC3xPQ8CQunDMtZjjdS2\r\nTXFIP7bl/ORlJxdwo64ZLGFli9xiM/p+UzaEzqI5R2XeE9Rht1CDrr2dIymm\r\nA5dxyvWbS2ejhRyOMYjwKeLOxRb2fCdOukPN/Yfx/MCV+Q8xyErpsBbim8aJ\r\nNEFBWHXoNh90ExdC6g14LnB5/z9zdH+UGvDz4vM4HL/T/zULL0bVjML1woej\r\nTKpx6IHoC7/Y+8xStniwjyD1CDwkOvDO+xw=\r\n=v1ME\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.36_1676750212816_0.12617702061337677"},"_hasShrinkwrap":false},"0.4.0-alpha.37":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.37","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.37+616b908a","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.37+616b908a","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"616b908a8e6788657f79dce3830dd498e14e7109","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.37","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Sru3IrP4z6/4k2JmO3inw0tCV8LNHT95FemkBji6/RRlfBov/K7HAtydCpoCC3es3GJa6JbT52wnxXQmI/ql+g==","shasum":"dfecd7ddaa424e47164f942b549de486bf18bcbb","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.37.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIl/dLekI8uNzpppo0cwL3HZrR79VchXQVlvfI4LVEewIgckSc9i5V5GjltaZ210NIrSH4ctwgmWUyAMPJlm6bS58="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8k54ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3mRAAnt5RChu5m8Q+ey/NECCaMwfZjmZo79NTcVHRtj0R4BSYSw6l\r\npalFwBhgXx03Fns77onfoYaxGo3ADpX6WyTjt8WFWV9tzpjx+mvuAnZF14qV\r\nRsGEUjJWl/5MKnJVYn8SpZi4mvfORyjiXaixI5qBkkuDRLagRT/lYNg9PKOz\r\np9CBNIygxb9O8JUogLKtzAw1IGij8eYRxURkKIts8I2bFU2I8am9lL/6SF+D\r\nRyNqhqWKgO/buYUWlxA5E+3DML7KotvyXxmaERh4XETn2/VMUk8DQvPupS2m\r\nLt+GqiCrEqY0bWGsZSPIORryOpftL+c3o+T7Ju502H2CgtSOXSqBE+aEULGA\r\nI/bqopxt1bIv0AFia89qxg2eW1TXoqq9qDhbyBvpQll8oLmvTqlmw0evWvtR\r\nUnW201D3JaNjijzMdYvp5vtuXaJZoEAiUFXaZttogTHGM8L5DThe80cjPX6x\r\n/nLx7BpVJIX2XZUXsxW28dI7d4wFD8KHMWRcwWXLHGbmJNspB4izPNQ3+w70\r\n3wbD3AgmeTUGSHzH8oPyVHdmER4IKqTmh45ZI6aKZpHI3mp232U7PJunV6cI\r\nZUmC3YJyTL+d5b9VTWbu0xxRqlN2E4B6ovN8VgLxs9uwprs9j0nKo/HqIO0a\r\n92w/WXPRJckgnvBUhJyrqs7cuERQ2KZUasw=\r\n=m4yy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.37_1676824184573_0.6850792749228862"},"_hasShrinkwrap":false},"0.4.0-alpha.38":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.38","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.38+b6d66b1e","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.38+b6d66b1e","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"b6d66b1e9a75b4070dbfa0499ba972392c8d7b86","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.38","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-zPLaOGd7PhNB+7VGtMAtWsMCpqBWloMuEmvK90fR5I3Albp9eylQiPJhqy8mE2gt6nGzOmCCOQRQLC9hX8hA+A==","shasum":"8dd0de911bfa35df55b871c819ad786cdb3fbad9","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.38.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrjBLzEPZPxEH5OOYsZJFhcqfQa37fmF1Rho6wbBEa3AiB1J0SOn4Sb0sU7NAB+oLrzmBR0DGqGbF6drhWAmdslPw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8riDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpViA/+LqhISr/CoxaALNHgcdoGFFv2nvg4Ri3dO36CfR7eq1Lwm9DH\r\nm4oF5gA7YtuwvM2TscgLzJxmf08LEY3wudvMyEuu2kEV6N0qvK5Wxr4we3P/\r\naXEt4HtUueYADkUdJx9waK520m54O/6L+h5oP5+rbY0k+zpPqCFhM5GQ8Elt\r\no4w5GCAae89NCR+ZiTmjVr0aPea4KC2XAcDqE/x59/vAjbwqaU4UEV31AQNo\r\n+MJz9reTrZcjXyD0g9hPhCJ5Qv+fcWPY8zvRSk9smDr75jjVJmaODm1xAUdt\r\nCqZuOqtR1fwNZS4qR9u6MjVxt1Jad4NAcXLuxLUMIyq3dhvEmrpjnbD3kZ4V\r\nRhFt2s3EG68jYFbGCpWRDAUdHCMvNZG93wKTpOUPDc1UarIjy3JDiv2pI9tw\r\nFft1r9RLpO2nT+i4mLLQ5N18URg+4ECdBbN9dObjz8bYQT3T/aXmLdEeAljP\r\nGZm4VWiYFgZMi8mUyU8qlTtqMLP3uDALEmYEPhdk2qC+w5V6veTao4aM59ii\r\n7hmrHm0L6ZguOyWcXLsfKJ+D5FUDl6J+0RUbpawx/TllXcc58yCMW2B6FK6g\r\nhSQKRJNf11NBMC6oF9nvsJrsLUybgT1Fe95uZxrPsT52OrqHhBAQk0WfMeP8\r\n9FitsuPQ7njRT4aSaKxUaPzeatNLdL5GYac=\r\n=qrd/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.38_1676851331003_0.7120658542378746"},"_hasShrinkwrap":false},"0.4.0-alpha.39":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.39","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.39+edf392fd","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.39+edf392fd","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"edf392fdf561cf8f6a83ecb2a9e08308827de8fc","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.39","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-3zr7TT0LNnn0z6o+LmALSuVyIGK+m2HLhif5Z+JF4tRlNjnmxtZHkDAKZfk7S1SXyx4EVnPbWsuoAElZUzs6Fw==","shasum":"41ec77f55381438912e26aad3dcac68e993645f6","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.39.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxEtHpOgOqtYD+jxXfzgVJWhg5eDSH5MnagRCBsj5qSAiB0l3d6bqBA1LLB/l9I1cBI/T5wYSlmaxSOjJrt0t1x8w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj81eXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXzQ//VFLlr+weDKr4cuyh0BPz6yB43nIMI0ONxw8/YPSNn7ZDny2Z\r\nSRpIdaskTJj9P3WTbHpkFfAmb66AFaHYvxIqjYAsvjmUhIRRmmgFguhUqkmS\r\ncT2k1wRfLlBzgxfxxNpw3Lt/dK4bba06DgVI+czTUXaszzE4kwRN8Iyh5D/D\r\n5YqfbFLmiguGdC84bBLA3Ww2/GnaMTgAoutTLyJsVpQR4zbK46CrJ+XW/fnD\r\npnyxoNIpEbvBA5dZKBX2uXZrVlTOtIS2WMBYMBamp0hXnMHXw2wzZt48IoGI\r\nJXWUZTMKGi9/lwSjPOAfGKcluou60y6LxMQb+vYQudBxu6rrjqzZOXwIMWpY\r\natKXzfqKdnmVSDKbbKrtoOQ+Z5kNyhd4x4e7DNuBIZBsjPvMGj8yZPBoLF06\r\nYNAmCbitA4Enia/5JalwrPk+SRbhr2qUVVDnWLAyfqwHiLvPHLl7Ppa0BE4C\r\n7sQDjzZWnNYXLoyNCvWQRO6ks776z7AY/1MSJ5aMQj+I8lChYAGt3RNw++iJ\r\nOPI+xLC/9IbYIGmZCZ/Az8DiAc6vwkqyNK5HPirjIHQ4oiYDGzmFbrlxkp6F\r\nMd69zS68AVhYDHGtEaL8Io+lfnS2TzNDLxcbTbRYnPQHHxSJYQAgTGIGyf/8\r\nZPWIFtOPei5iHm2Skjk30fdg2dJtjMpPVd8=\r\n=GCaO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.39_1676892055042_0.09595282863986565"},"_hasShrinkwrap":false},"0.4.0-alpha.40":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.40","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.40+c0e5339e","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.40+c0e5339e","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"c0e5339edfa32df92f23fb9c920796b4b59adf52","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.40","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-+MjXBNBHpvYp2HNd+5uhj/Jx+jDscEWq8EjlSJgqKM8JIwvyekCC34jswvOpHHv6VxQAgiT3KqZ1XPPm7NgPZA==","shasum":"2219b071bf0d1a297c7c076d917a249775bb33ae","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.40.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEu9Lb6nUoCX030Fpb56z0ROAO+W+eqmKHFCKN0DP/QuAiEAl92ZCb9Ro66q+SY81Ol9/i6ugrWHO7v9WF/NWXrRKkI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj82JlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAsg//TnOwreu7o5LPt3yjqsdwtE0/CypdrIZz7haiA/90RklqwuFF\r\nRqbb0gGM3SXsZNbbpi1ZnJTzgMtoXIAgZIJ6ZE6MlnlvXx0PIIcFA9IdRJCq\r\nV4XK6n+orzk1RhsMN3CWmo4cScfrvn5/ulHeIH+Q9vv3Rbv/SDU1g2U0mw+i\r\njQ29drfhR1Y8kd6VL/3rrggN4Ub77eEhiRXpgHLZ//ToebUWloQOn2aidhmy\r\n8AE9KdFY1gGPiJZY6CHctaCXLbaRia170XrcQpVHOBemVD8hngpwL9Me4LTT\r\nM7iBAt2Xk5x4UaAGcyMJ82gnqjre/th5QEHHacOo230jV4LQUu0TWpqecxC5\r\nIdljewABm9yxz3RzVC79rw9A24xA41fm/1GLQh1CQ0+JwRz05W30o0RXeRku\r\nCyyHc+XS4HgDtB+pL3sKFx/QfMlUKvtZ35/w3ScUvKVQm4R9c/tQDTHJTKK2\r\nozqkUEaXSgX9jZKAsdteokfqXRNAVWmd719c1IO8aDWVYgy+VdfKZrYLwylX\r\nnyxwq/hgAbTAgJBRIJLeNSZ/8TTYkhj7VOg3R+l04vs364ZixBj8582hZ7Kq\r\nB/legPRo2TZrPYsynTGnVgwblXcQQiD58HMqsIC+j2D6ZrHgzshLo/kvuD+m\r\n/SI6sX0Iqwfu0nfxa0cnJLF/KbsOjFpuClQ=\r\n=S/Wu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.40_1676894821013_0.5572671858173617"},"_hasShrinkwrap":false},"0.4.0-alpha.41":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.41","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.41+64e20f1d","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.41+64e20f1d","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"64e20f1d694e4cbb38aca244e02980a12c7647df","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.41","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-UHQk2hZVGfuMPHHfNjsHplttEXLWAu3nJaJ8nZPY/NRI16cWxf9/XbD/GHTqD9BmyQqfGmhoQENoCs3qNUYFew==","shasum":"2bdc7afbcfd7ea94eecb9e2d34f99c6695fed553","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.41.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcG4FWIV1F7Imctoinwdm2zU9s6jUT0vut5FW6b4I0ZQIhAJ3CBdtCtirzJ8B97izu83jGcbSBO+QaeOIPk8xf8Ib2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj85xwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp50Q/8CHiiQ4HJ6yoVMphzQFOu2cw5K4VrOYRzZS224sD0J4DzvmtV\r\nUqUKQtLNPEcYHx3XjPIwxctdROOYaniS1Pq+CVzD8rtWQS3nBvlqaF99kOX1\r\nn1D0Zt846r+5qSUi+vrqiH8z66WiavWNKl0IvQFgN/FmLNfZ/VFyotqDXTU7\r\nckwGykfCVBBa6weE2gWL/6vCGqbS69gKXHk/5wntOHeuWfNTiErhi0dli2p1\r\na9JZP6RJ1pfnrUegb1oy/4p6JxLU84uEntFxFhpPtSetHWgSPD48yaTHJjCh\r\nU8d0ytjsp7nEjFAA9wDz/aMs9r8vvcLz/tp0+0DVN8wCikwx6EZnH2LA7Nxf\r\nL0fi1ocMcLsVV9PCwgshfENwN2uPsKUuKiXtnTsLH9lkLrptCRThfOyL+HmF\r\nnRg1obcyKxxM2KfDcuNONYP5ki5RTFCfMpLbVXuGqa9LZpcr9ZqjSi4L5J01\r\nkCkQ9SiBZlNIySVd6IXTzjnz+Z5oqJfzRB286I3LVifwx4sM/kvWXYHZYUHD\r\nQw/A2991upgTybADrj8+1K8jbe8wPniz9RQnPE/yyI1BbDihI297Dp7TmVoS\r\nnS7VRW3I007dVC/2hGe3KUPlE063KKL5DSAY1ZbSVl8X9AWVScRx62hGKVHy\r\n4wVIjXenaTGrl45dbGP8jmr5rSYB4F6LTV8=\r\n=bCxc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.41_1676909680149_0.011354036979483562"},"_hasShrinkwrap":false},"0.4.0-alpha.42":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.42","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.42+fb7ee504","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.42+fb7ee504","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"fb7ee5048c33d5335cd9f07cad3dffc60dee7376","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.42","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-O18fNrWijs6UAVrbMHnto2ufUIVo/ASdiltu4nhx9SueUPuBgzf7++xul8mmyxLmDk3qUWkivIUtWLMlM6m5VA==","shasum":"7d5ed5b75ed6d3f44bfe7a49cc542386216e96b8","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.42.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfm/MCgzLCtMekQfebNF2tZdE8t5+nXRoQclXv9nnJaAiAHN02E4R85ZBJ0dX61epuUR9OqlA3SuP7G20ngyHcNdQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9NhkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2Hg/5AXy3El2cR77fwXjkskmyb3MN9n8Pcnen4DIOTY2SetUlUaQP\r\nIS6rWlHIzmbcKVesvThp87f9k7iiC/nwoR2iUiK8GV5P77X1X6mIT89PjeNk\r\ng9eITl1dpxyIClSu50vWwB0edYe0M+vWdfihNyzvLvX/rkSnm4bU0VTyuHqK\r\nDE6ASboWOmDnXQPOmvYf/QL96DzPMD79YnYO7NmkwwN4eiCe09vvz5qJqFgj\r\nIbRi1xbtB0tB9oav0b6b1j09d90gogsy6FZKuALnI9Tdjny1JJYC1QQEcW0C\r\n5+7IrnY65rfhUSKMT8PVyl8QFD8paxGhwiIRhvbvTRDACOaBrD7J/IMOJwiT\r\nDqv5psDsmgzMkamyBIw4vesVDNPRpv58m3+/K4YAWJmAdUev1naQSPu13Za1\r\nRyujJYehLKOjXSM9IcdF6qPUhULqwQNf7B40sJw2MiBf+djJhjRQF37pJJVA\r\n7zKeG88Ud+SGarLG2q/WNMVFLUyTHB30b9D1jyK0615cSv914LaRw6TcJv4h\r\nJFNng6UknQYO6rMnaNArDJegNNBjyGfhAqk+1ru/WGfH3KCyutGjfIvgjNau\r\n97vybIc3a76BdMgl2Q3hzCsO23OxgW3OQoL9jwY1abugS2je20ZGQZdPXLVo\r\n5BITC10BgMoTAsv1z5FbbnS6szBZ7scuzwY=\r\n=L1Sg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.42_1676990564796_0.6485188736267473"},"_hasShrinkwrap":false},"0.4.0-alpha.43":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.43","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.43+1c6aeae3","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.43+1c6aeae3","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"1c6aeae31ac57e83f4059f3dba35ccb1ca36926e","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.43","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-UUP/ajtXrOi0A8QvvLOhqUuezXfUgthYRaey2ee/PQzUsAtNBUCxVTx3YXD+U52hDYshYr6oW7g46hqEWll/Pg==","shasum":"d13cc4fa67af35cd646f3e7fad30991d9fbd6eeb","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.43.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvc08OxHIPHelo1Q3k7eWDx2KWusfeID7SwUNMm+4r6AiBLQOzJy6neNZByK/PYLLhejy3jIkfGb22wvzBRAaE2CQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9UPvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqiyw//TpS1t/duD4IWVloqxqAE/H6swloaad5aOYUecADyNyb607T8\r\nMbfq8248/hne4AwJhq6YxTcSMIfSW0QfACWs1qk83Kvf6MzK3cxA9Q2eP1Ek\r\nUXJefmTguZVfrs6Vlgl+S/HXKPeiq++gx1+ixpgOxyE7RtT0moMJXDsDf7+M\r\n4EsoNTvAizldPXrLkhryKGb9J/lbwwxgcyUH3lWqtYKHQ3XtXhIzYXrX8wvr\r\n+EE9QKKIYutUyovTLizmjM9Qz7aTRLKqtMiFcKhbGaoYa1EWgQghDZiJqjzS\r\nwN42zDZQyw81wG8mx8kCNZWihqSx9/FjZnrrGUQw25iQ2Jbda4B0mWbNxcj6\r\njmWlhL7DvNj/07tdNanEXw8caxCSgSfkZYHXnUQSLv+fA2AeJ0eC9H4VxgpD\r\nb35r8IfMcMyg6x3gDXfZi5Z+O82T5BzyGzFFgl0ZXWkXKIK3wE5jxPXjyChs\r\nIA9WXICd6r7cLw/fTUdr49T9wzpFssJhV7qsEe9ehXcbYjtpN5lc+wphZ/hv\r\n5sSx/4jhmDSby8tUYJR3D9T5w5PMSlTLxsCsYnxOCl2BH5nngkoSmtMMLwM8\r\nzkMwUXg0oU3nuVUfBPgf7p30OPwlgXQRoGspW8KPEanBG+vm7SxQQK4jQ6BY\r\nU9LSKO6lTagWdeU2p7xrlCqkRyMhP3wB7AE=\r\n=5jr3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.43_1677018095227_0.47856077785653905"},"_hasShrinkwrap":false},"0.4.0-alpha.44":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.44","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.44+518e5e4d","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.44+518e5e4d","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"518e5e4dfb59f9c0457bfd233409e9f4b3c429ee","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.44","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-QnT4u8NmW14UZEVFL1w55PyiFf3b0NLltToRRUuBof50hLU5/At2JanhOFTGrbwrIpJB61pWwcAmwMgnYAX7nw==","shasum":"296c3183e261cd416121d4f4a892e09394ba8692","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.44.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFie8dGzfSflw7jIRgpBXW8qAYzcWXPJO9HpRMXOzZqnAiAYWKJPq07lb6u0aGoTovwif0I3SejbWBZGsqLxJlhyIA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9cbMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlUhAAmxLzCxKvHUh8NEiAHgJNYDxMVW1WbbB8XhCoocCAxLup7AYP\r\nIrnUN5EjS2a8K0PnCIbJivN0d1K+Sh8zARRGGgvmalON/qUKx/Vm6jTtoxGO\r\nvbfjyH7oXopUUz3D1OZiJEEOhLyM+XTMZi2tSY8vVFhFoJz7//+6GjENb+e3\r\nUbe0fJuzx10iVqFiitKY8qM7+J8MemeOeWR2PbkgfuZPr4ps/2Pfy+ACzR1Q\r\nTKxxifYTIYVTnoOdOLEGoGme3Jtdd0wvkC5oGTf3e3xi3e/cQCnNU9p3i2gk\r\nNOuQ4/kRc9eVslQOhnsab83wfPm34CNTe7xAyemgNo/sWVykTPk4lv70GpSC\r\nPLaUd7LiTqLbTTHq0vSLXNzNCizmVUifPcLsD2eZmAM7wqmJaVekv+3ab9Vm\r\nXqanuYmcGHt8VM/BfEwuk3XjdgNLufYpqXeVqx1EsqKvYuhKK59SvrumoSIF\r\n9XqhILGU4rZyPr8xMxr0bGTBm7XtEwLmOL5NM3rmp3imrGN9Zrk5mexKvDC6\r\nYyt0dq7zfyWbBTIparM/kAvC3XC/mgt3GMrb5iogOClzZu3/9K8mKgfWYMUv\r\nI3shM9/naSMd5wHwHUsbTr8SlAO6bP62sEcHXm2iKyAZppD2KlxygQGFNetI\r\n5F6A07cHraMpB+NabAVOkcJBSqBItmwcdVY=\r\n=5ENl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.44_1677051596474_0.7740390080239603"},"_hasShrinkwrap":false},"0.4.0-alpha.45":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.45","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.45+d5e34ffd","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.45+d5e34ffd","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"d5e34ffdbc2d960a8efe76249201dabc1450b7b4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.45","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-qTlX7KwQTmhZmfjM5jTCd9cf+EbF/Hdgp6ziB0l5llnEeYp5EzFSkNBsvM7ZQBkJl51ujZawar12S6vEcu5zxA==","shasum":"82a801ee40f9086b68a373b9997811d6ab6597ca","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.45.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbe5cB8UiQqVSmj3VS+eyv5oy9NfbDfxmbtkG1X4p4NwIgSYRdidQBKz5L9Qj/UkJjrPObm4xT/KH2LoCssF1/3WI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+IHdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAzQ//WQ388zBrte90NqOcdjPm9t58Z7EQfnwBH/SbvJ1J5OTIATjk\r\nDJnlvo08bEwxoQ/60TLna92TIQIcBoZMPI2iYCJHtbOQ/aqSQioW1S7gRdZK\r\nHKmY193kEn81TZKKeEvaMhWDCBXB+qn0wIkZW0Ip+78qlelPEisse751o1R3\r\nwvdDZU7p+hj0kY1izZzWb0+vua8TeNOSH2MzaJB6czsdXdWfLicpfD5/Ffdn\r\nDViQxUiB+PImHp34KVbL1Ih+LSwO6AbVgSi8Kiiv23xCksgL9s8ZxLrS3KaB\r\ny8bRCX5gggpW3MOHbK9tmprkS8HdA+yJz3BGGCqFi4aFQYy1YhiD+3EMVPcC\r\njPXArX1WwXdkMQapvnTnidesoBMqT2Ss6h/BMSpeYrQBO5NgJ21wLF9d5kyx\r\nXMu42fg/+cPvZW0eJ3yo+gz78bXeciVyJX8PvSLMlTS2Rhn22eBq4idDFlxm\r\n6rcMxIz/FkBuI2S/oJGGIGrv7FYTc3qD2yBTXWylz4HF6dKvKDscRl/huTO6\r\nEbFTD77o90hdIl6iquHKuiOy/BVwQl1reAhGIpI2joQWpP3PCEAhnM6/80WB\r\nGVTJLZph+FzxUFBPz1TUno1QdSgA90cFfM2NFofwTj6uGutxRVTUmPSfoavr\r\n46Wg6/bDBHXPJSqfa9wVasmF+RCHGGp9efA=\r\n=kxdl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.45_1677230557706_0.10919198071550285"},"_hasShrinkwrap":false},"0.4.0-alpha.46":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.46","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.46+cac2ec30","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.46+cac2ec30","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"cac2ec3082a49ecefc60644f34d10f82f3a69ec9","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.46","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-R+oLAEXZNL7kVCLJjgRlgE6ntZUWfnXLkIlVHjLOXvResTN3VzOkwzXDu4rNgvvIiew4y5SvJCQWU33jT2G5FA==","shasum":"bdb5af6ca3ae825fb7282f61bdb4befcc08a4966","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.46.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6SFvlNEQ4Iy+JJLFhi8KII8uW6RfDbtub45ULBjMKeAiEAr7hPPeR9RGNPJkJHcxShefnKvoUqWj/2+NdsvtP2RzY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+I3mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZkhAAk7E6B48tzMt/WyDu7TCG4mHfkPrgsJktZd2XU3YysK9eCGRX\r\nDyOTXw57srBPtMwVCKZI9Y8lyWliV8K5RMr2wR/OVcZ4BNLDaBLcCE92OdZU\r\nGtfYul76Pax4Q+afSxI0sNZ16b1Ma7SmKq3dgWu0P33RIopMJBC1omOdmm5a\r\n8X9u3sGKQ8fAL6ouQK7MzHFnkUZ1sc4V2CANBFx8lTcWx2LT8ByoTlRek8e1\r\ngxjFRo6+CPYV8WsycOJRvcorRMfmEJqA3PkuJcNHlTrxEcLPl4+3XRrh05Lz\r\n/iN9nUxASsUIezgPk3ybOFawZ255rSKpBUIZwS/Iaf77lPNaNWGl1/afnQNr\r\n99arZmhUnrkdzHALTqfgseKw0pvFnmGJhNnfews2hkUK1RpNKZ09LJTa179G\r\nPa22xbRsc0qsPqmO2JZ0xmLdg/h81KZag74ih/qi3DLidzC7nBWMHp2iiujd\r\nvtcnhVenZOwtF6K1s7/za4uYZk4eBdHqT7R7KVy7ZwOgjpYN2jMBvicXbQAf\r\nf6+RZs31g6sXl0n7JSCpmJmIFUZ/2lCZEWxhmlqE17ixj+soQz6M/ysCTVSY\r\n0Z7DXhAg+CB8rBEjQmLRyYt+sdQG7NowttJ7aZjThI6HXocjCPf5oER/FQHu\r\nWCXus3t7YA9uL+LZDHZsYRb38+i8W3PuiIY=\r\n=IifS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.46_1677233638699_0.6832730503487809"},"_hasShrinkwrap":false},"0.4.0-alpha.47":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.47","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.47+da8f2ad3","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.47+da8f2ad3","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"da8f2ad36c386497b16075790a364faae50fcd47","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.47","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-/R2s5JwhQ9HGY79Q68emHQPnfdLZehfkq8Kat4scICavza9wI1hcofJPnBDaHai7Q3ia352eRSBeguQ8J8sP5Q==","shasum":"25cb559677849c17e0cf55e1669a793b0bb0a7b1","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.47.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBDoHaLh+04ZLzoBoW9L07NkLS4JSks2thibbDFGa86wIgGsWhWSZzyXy/qBe26UC58H+MfMUJ3ZBlK2ugSvQFaOQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+JrXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEwQ/+NapN6F4suYChd3fQqXLkVr5u051vfxdlfE+jEKolQRnfedeT\r\nTauZNmPy1nCiZHbsm2Lc+e7HL1kw5yvE5rTZg4rqiXGvPWDqFa0H4eRpMow0\r\nDLx77zTpQoT8+SQisMy2V7wfDxzpOiM+jlfWGu91N2ncHU4CzPoJGRfEDuGF\r\ntTlVEVVfXFFoPs87Xzaks+qKAKQHRiyhUZbIblPsYMjucgDF/d/e1V/Xbti7\r\nCqWzEMUQIzYeFKKnrgDvIMuWFJ/k8rKQXC24x6LxnJ9yrM1cZnq8hd8pcwBu\r\nZbCpsO4/Ms3+uBACuQATAa1mbgBSS97O8SH+0ni9jP5JaVx5Y/tZSIf0Y0rs\r\nEw0juTTdNgT7V7wUd9spaDuyqxopGuCwBqrH9CfGwG2mRWGXec1b+3ujONm4\r\n6jWJC1T29P/2qZSFebCNtTDUP//lweaHsIxylGLRzNYoOJ5BnPw2/HZNlA52\r\nXvPw/idhAxSN3eBeDMta37scfEaReiyhkXSC9LtiNcUvvVVh/G14r6tSDvsx\r\nMIb7OjjtcPhK2T6R2huQtSveqnOLFuTAJwH6FCBqKmd5WBDDg/popGdDuq2x\r\njZMGEThYTdFXMk1GTp9jLvO/Q7AE6CU/qO1GP9yLMMcUsFFXyN3uOZSn3d1d\r\n3+zMQJA7ey1V4kQ/M+d4WKrK9Y2nbT6Q24M=\r\n=k5KF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.47_1677236950966_0.18753414978720895"},"_hasShrinkwrap":false},"0.4.0-alpha.48":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.48","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.48+d38ecb14","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.48+d38ecb14","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"d38ecb14cb58f1eb78e01c91699bb990d805dc08","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.48","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ost65hDtLmYpZwPwyDWJdl9eb7udl4EcuSOAUD5EExxpcbCQ4KmKQeeIyZ7zZgeneiFec8qpgqjntchyO0dstw==","shasum":"144eed3bdb6915f9bee39e68eb6e544642ac9f11","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.48.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVe3K6APT3ri5QDAYAFnJPS48IXnGez67WuuBtq8lt1gIhANDAZoHZoRCztuxsqQvUNiP+y2LNG3d4XRRCPI6Qo1Ze"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+KqHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgbA/8C/7q+EdlsSs71MqwGUDkYt3j1+UVzoWU9lKG0K71PWx0InGm\r\nTSKD9tjg97s8CUY2ImBii0awStwZXK+1ErEdLhk6kIns9DCWfdQGsC5Ttqyy\r\nKAkELe4Ubkr4YHQ3yChzjLzZzE4AC4aDdvfwveZBkiKoosfpJui8bblDADCV\r\nG+wRdnCObTKWwmvPb/xM1qwjNYam1KG1CmReYsXJA7yDkZOWoN8BUgO1Bsz0\r\npUvrcj2aU3GSKKtbnOOSsBLW4DhBd0tKRKpDBUd7ROJtowKehcTUkBJU0k3K\r\nJkwM4vOx8gRBPC7LXLIGtovCEG1HZTSLXAtYI/aSheR13rUcHVRvvkurjmD5\r\njylLwJC9mFHW2rfom+CKbkPjaI1iKsrcJfwx/Y83iIJnqe+RyaRSvMisqEwu\r\nbyG6yrYLWOSly4MjEpfuJJHuRSVS4b+gGWtFqGBc8CEYhVNofpoB1r7Pe9ex\r\nbrorJwT1bp3RG3clrVnCoWHmf4TXjMx1lJmXVTBFMn4QQBz9wND26D9n9/r5\r\nEVvy7lxZ/kEJRKNCFimOTfWneYG73mTxHq53Z167kvHvJr3FW9Tu8mNPaX6E\r\n/OHqIFAEaEwwvR3S/uyW8PJn/IPEWaQ6EYP6l62Rk8Dtm0mnaL5Kbx3Z2qEI\r\n2SREi/Pt7P/GITPfQNgf7Zk6ZpgEBmFyYRg=\r\n=AEXi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.48_1677240966855_0.4450034022100422"},"_hasShrinkwrap":false},"0.4.0-alpha.49":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.49","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.49+e14d8539","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.49+e14d8539","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"e14d8539134b1d99cd9e81983cb69ead92108bbb","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.49","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-1XZ92468WbIBzI36OsJhJ7TQLq95GSrnHbvZRUud+Bw40OOQbSVhAWB1pWkIXROdP0jvYh4A1icj6v4lsgdMUA==","shasum":"2b57b9b2de8d55c58218d026eace99a72f5cd86f","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.49.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg1wwh3/A1x8bdAXf8w+BEKGDB2jVi3SA40tv807krQgIhAMI/6fVL8pMPnzniTyCpD7jTyjhH9UEzEruqvg4kmr2I"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+O2JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryYA//ezyaJvnkp5IqNSd6st6LUVgk+8aJ1DPNCAPIThOdc1JjPcJA\r\n56wfJ1wODX9HU7qZNvPKrn1Kv26T2jI2+nAYmx8dPz9O2isXOEnNOeCWoFfz\r\nb+VAbrMueE1ANd5YyvCYMRoDL3f8aOAOd5LU0FIrgsyccLJLWJlNl8+buAjO\r\nJSFv5klI08+eGxCthCvvA0EzMnPZ50jANgwNrdo/m8MNdNI94AXquo1Q5/9P\r\nmXDqaFaIHmckrqvsI5K+P6h6UzdrSaFgiYD4Wni3D7/1oyIY5uALe9rIMouJ\r\nK8yFoX5UXRYWbEkMONt1ruMy/cmECcHzoXmYVeZWhA/+8dH2yWC+Gop57ZSw\r\nZZtXuo2dMom6pJV8jE8398s18UgsdenWcgPbldLzmO7NacKgoDtehomGyY0o\r\nUU8QZ1cNP+f4Zfd4+WRaiiy5EhzLo2G39WZVWAMQGHRdlgEyNeKVmDurz4iL\r\nUWGaSiGVDAyVukIGOsNL1RJwiklqSVLDCkXHClaQsA/Z0qT9bgIWPwUCTpyP\r\nf/bN77XRJyzIWYmxGs6WVoSMtPkORp5Cwy8ZODQmENjrFU0oywKTRrjkeksv\r\ne4v7CnnT76gzRcyrwCUXARPTdoUUKwJteTwkLb+MtZfoMNds/sjL/nWWOGWI\r\nsT1s1ivuzl784wdZnEt0oa1507rGJaLef2Y=\r\n=lmfd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.49_1677258121203_0.6437841338702135"},"_hasShrinkwrap":false},"0.4.0-alpha.50":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.50","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.50+dc60acba","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.50+dc60acba","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"dc60acba28752a8317b4a88937aca7aa6308a873","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.50","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-zSTz+XsiQrflU7uAMrq6zQt9qrlwYGLc3F+3Nd9CE33I8XeywlEhbKIuF5VsyU+XI31bGUBYa+Brpcus/8nrDQ==","shasum":"688e9351e9dbb4df6fe4db71a7e24fce45bf52f0","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.50.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmT+zgVjDbwk0QEOBGxl5ntj2naGqNnBw1C66BasK3OwIhAJouT6NOeRXB5ujxhprKKtKJCR1Z9orOmfSyHEo87rPV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+RXLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjjA/9Gg0Q8jElC+XpEPxXm5+o7lvi7l5gIjU52zonT2/GvZYd+Wv/\r\nYaGhOk8o7KE1IZrvxAvM8253AvFsJrPmNnphVK7rEN/WsLSxYn0Pzzq08Dbr\r\nL5p4uc04F+Sa/yj0q5eSyOXveznTqQFPw7eC6e4tO2l3U2QrW+O2nmuu6wV0\r\nsb9d+KF46jnhsxSA8jE90mMrQedrEXtscsgy1zvhQOxVEKARCnApcvdm+8Ml\r\nE2Ffza6cN2Bx/pu581l6LH1/aD2bHVz23HJ6c/hCBr8WfHbPIjuIRH7f/sZd\r\nbo15pCehlol2KFv4ARs4bBmEeLHP4kCPtL+YVfoDXze2Iu2OLaEJKGThDP4A\r\nHqU0te05QrcWoqORDEBzFNMoNSuXIlelQf3ct+XUWxIUmeT6KelNE/VMPIZ3\r\n0Rjmsw9dnvWRbNJi4+KtQlJgDm9D9s4l1AdR7Dvex/rCAC0t4Gv6JRBEXJSi\r\nxIP3W/rTNoOg2oBL8s9r8RMRMVsBEMRVVPOWns3ZFrg5m3NrMfEck5UGZU+x\r\nPvb4TI11tFnaKpNaSP8Vw9XBRCMfH/F8qRszxioSf6JwMomnsmBQGTS1S/CL\r\nnxqVPqXuo71YnWKZbDN2zYF0aELGA+Nc/c2XKnMtCR3Is8DecnnRTlYqDfG/\r\n/3YyIL37jdJyqbkH6lycWtPfsimd6BY/izU=\r\n=k39J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.50_1677268427275_0.6632198085016301"},"_hasShrinkwrap":false},"0.4.0-alpha.51":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.51","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.51+21d4bf76","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.51+21d4bf76","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"21d4bf7652e30062e82f440f0c70470cc6f31f53","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.51","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-9t+uTbBPBkVMPbEVe/ci3E8BfokburdIPsHZ9wyxMll1swpgojyxpsiIXxcSXpikQTxXI7nlEBdj6Uz/0wjxDA==","shasum":"384152764bd4ce891e27b14e32eff3c0b88f7201","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.51.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEadnzv/+CCE3UeHiqc+jNy+fU1cnWxY7UcBYjz7T0ZTAiEAoM7zWVyyam8fHTz1MSofpQEfcpi+HAlxOOwYfPM+Dho="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+SrUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEfA/+KDWV6goW27lPai2hOhTUI06gubvywJVeruoESzMIrxz3BXDd\r\nGyHRYpSi2JBXPrM99wPzXJsXyd2xMeZVrbw7XkBI6i/o5g2daoaPTkFEg/sa\r\nfBm0wGOcGe90690UV7AaCnazZOggfLGQzP+jC+5my6LTHW3uz5J+IyxPWreZ\r\nKZmNNoXATz+cs6ioCxo+aR36a+OKkeQn7ZWuVH736BD6AZ86vfUJ8/hT6Mkw\r\nhn7u65WZSq1IAiMGb+/OFqLiJfr+edRxi9SJPqbeDLelKOQCqSji/dEWDwCa\r\niPB8WTQzlXgsAAejwli15nB0JeRKvtCrK4S3+gNVV5xTJJ/6pUzETs+hikYx\r\nld0EPi9oDWxs6GfQ3s8Vu/ooADF5XjRaeqmVHCHwXd7f0z+5WY5rhdYmp1pU\r\n+X+r49SLsIV0hYB3Hs9Ph+jNaM/ZSkhlIadQvGPAK/A5MU00Vnt1wlCT3dI8\r\n9J/u2ld1CCYXWNgzsBfbZ48TmUwWR6lHRw7vxotiaV7GgBf85GmTw5CPKLjp\r\nUOLfojPVjQ1uLvQpwhUuh8KptkgTkP8Wk5suJeAwqI8WzjhVTL4LcNOEBH7n\r\nCZmWrnKwhu/0pQzZrItSAahJ6BsT+eUE/tK+5A+pv2xvGa/3aj33luXQRt0O\r\nHUZFgkD/C6xLXnqnltq/hSClWkJxiEZ61zw=\r\n=k/yB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.51_1677273812506_0.47149432678003533"},"_hasShrinkwrap":false},"0.4.0-alpha.52":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.52","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.52+254f661c","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.52+254f661c","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"254f661c2e925b62dd07c3565099f9e226bd2b41","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.52","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-13HPYjGreaXIqHMFBNTVc5LTpPn6mG/t9SLZxPsVjNh8KkMsoNhrRjgJeBEuUgLSM0lbWZti/Q1E9ljVKOrXIA==","shasum":"72f53dfe8b767c8f940bf70e2e6bc785882a944d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.52.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFRO9KbCupQbSydVd1ZRDrdAeUmxqb41Yyczn4Wm++B6AiEA3tuKyN8QqpZOh5+5qLLS3pgB0rK0dyjafYuHXHlnVNE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+iClACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrReA/+LXCEOMYnLjBM8StIYMZ9tSUgV7yPLMkmbMG2wMoNeScwtcf5\r\n3uC927zE5T0fY8u7T5aC8xbTG8tceTNqJx04+qvKgnGx1WG4Su13woo9zWuF\r\nIeXaNe+lJ5q5K9egqKrcZcasvT0rHO0/At6Djs81t2jMwXkvHHIvhJNVPIO4\r\nsUn4pZiDSVPQNouRnA2aJoSU9QKXvfjX0esuaOTD3RGhXe94vCK2Y5TECDq6\r\nf3QFtbcHZIOAsm8EaJ5Kbp/ASydtjpkf9i2V7/UAYpeTeY4KMKI/7tSilK+A\r\nSwlDc1dXU/SEUPnndi0XiTDKx/r+uEdvkbZUhgpQ/Gbu8efle5w5gbijDZGH\r\ndxJLMT+eHn8mA4id6jVAeFYk0rD4gAGjXC4AbeEMTbv2OKREcYq3FOXqBexb\r\n2PPOMRV+qc1pSiT+SoX1BLmtA3GIg1T5xI4zn6t1Saog44fAVkW1nSf8JYv1\r\nyOOOrg9gVat3IUtovzTD0LxRRIfdXtXliQ8LYl4BGmAIur9iM9pUNkXlir21\r\nd2D0ypzDtGv7PvK8u2CvlbD254cSkseSS4/uGrONDnDDWkJGBTfUa0pBwi4G\r\ni2Ffrt3CBmSsVx5EXlmkZkjxG38XrMCXiazvg/tJn5tTq1ssH0YXTHfHXScg\r\nXJDd+zAP+5E7tr9YlVTTgAA1VsKqYmxS/uA=\r\n=Cn/K\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.52_1677336740846_0.9724474775884586"},"_hasShrinkwrap":false},"0.4.0-alpha.53":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.53","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.53+4ab3b54e","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.53+4ab3b54e","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"4ab3b54e9db630a6ba022af6becdd7276692afc5","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.53","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-1FA7UYeWCJNS6ggIFDb60RID6fxpzKEnK3hyYYOi/aPf08nxSKqojS6IcaULrKJHQM9zNOJZiqZec/G3gQvbtw==","shasum":"ce5832dd962c2e86383a1e9b6f895285128c70c6","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.53.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZDNzQnUh5ZC/KsA19bu+tlCutWt7OJPL8f9Yi/Wg0wAIgYAj3EE0tQL3Ha2ysDIMXaJtxkpNqZk/198KRRuFyXWs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/KFtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWGw/+PO0lr8GAH+yhs000riqL58uPfppiq2QOWQh+v4WY2B3EfViE\r\n7xgsw6Sa8q+hjIcEbMO/qtIhpBA8NINzrxHkK4wrhPzHJStbmI+CHwuNUdRL\r\nuai41yBvm4Gw9BtN8WMipuF/J6ifb7MW1cmeLAdCIGo3Utm9JDLYR9HSK9qG\r\nt70a7ymIDnvR8JzSZNYC8iRrwCUCUnAjGWd5QZD5Lg52V3bOPyXuEzq34KgM\r\nqUf56eURrS65l2i2Nf7cmNDvy+B46H9ElnzpZuU2wDwlat/K1yf9jXuIpems\r\nBH/tn+WQ7njZJ4R+sXiNC2DlPDaY7oibCa0dhg/sj3/eS+aIufYgq/f5NzY4\r\nsgwZsgM+vQ94ql71rtMNPtfRMcoM4Ph5eJpTvYi7WMyM4Xvl8GRDMEokNiVW\r\nR6yzcFMwGB1FCoZPjZV3t9tQCK+OoEnA876REEykw+LZJlcbGSfqyWLmfBtV\r\nW3MRRd0rr/aiC6p5ADrTbTIvVMXz97aeKj/sa8MDqm8UaUk0ogxf02QUXhk3\r\nC7Lln2l3H0/q6zh/0FB6Mk9tFugRnJIEHQgdB2783yMgPjS+5n1rRuzF6Ity\r\n+62GRiuf7o9RRIopMJhuHrdhVTuV/fm+m9l70LjXjH1A02oJSGZbb698Q2T6\r\neVVEayeAVzwKtfu4fMEJS7BCsgamG27FvBE=\r\n=fSXv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.53_1677500781799_0.2188030209837648"},"_hasShrinkwrap":false},"0.4.0-alpha.54":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.54","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.54+1bda3f07","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.54+1bda3f07","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"1bda3f0733a472b536059cee8d34e25fb04c9f2d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.54","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-6xO1Ar3xQp/KF7zkonPtE/Qv4QyqS1HqkI6ya+HCj5Py/c++x9DuOGFu2PQ63QkHOTXwUDC7/gFmI5iapKFMhg==","shasum":"15a02b3ff9ee86d1b5c0cc5c68361da933275f8a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.54.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPNKV2++JE6vpVlHX8OAPWP87bPKgnRF2zueuqPVo86AiA9QumwOgF2qfoGLHOPieF+eXuLfGCqnFz2WW1ipyBQUw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/Ph5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRIhAAkFq2kCc1kNO35XofqFo58I2JBDcmRZ6bmJpyyVsQJtQv2Gl1\r\nJS5Sq+YcfZ4tzbVopIl+csZGlPeuzwYiCAx8ps9wl3QFS5hAG/yCiT64Mpm+\r\nHcm1zrJJxoeFKXB0Ej21YsBxnA5p7F86MVl6D9+0SJ8CYlABFduG2/+VcEMh\r\no2FsGSo2vNfEMme/fkYURtnmIO6JKDePVT+OsGZMeoWXV9Nv+VWcX6pgiM+7\r\nDYsTBxvgrQu49qwAyxVkOHj2138Y9I/lgo4d4CkMfg6FGhQ5P2iOZyU0uQl1\r\ndDMh+oaIXIkNRq8Z0yMgJdnEyImd1U9Em6vsCTPeI/jpYS3B6ZlYbfpYwhT+\r\n6EVWDdwLdTox21JUi8bFdkrv81Nnwi2K4kcBQh6gjxfa5sNs5OatAMWAMsVe\r\nY/fwoP/9wQFOB2PeKsgtAdJOLEqc+kx1DGUf2cx5hUC6dxjqzyGz8ioMHebq\r\nuyW57MPkxsnfCHBj4E+QgpCtqsXctshibIbayxm782VpWAqSuWfgu4isq9Ea\r\np2eFbXDxB4AI7X6CTXrTc8DCVhlGH5PNNH6+X+EkVSjslsJ8syoAkk5wIp4w\r\nDE1XIBKF6Ta5ojx9TtFUyFoIPuuNBTOJRXaht85EYi9BniFjCALyK6w91NYW\r\ngHr4/+V6lkyfRbhDD/HybqWLFo+PVKLJ8xk=\r\n=Pmem\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.54_1677523065520_0.18502533831669843"},"_hasShrinkwrap":false},"0.4.0-alpha.55":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.55","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.55+78ecf1ed","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.55+78ecf1ed","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"78ecf1ed959c9daba1c119d03f4596f1db16c57c","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.55","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-8T+ydEKTogu1wWa1CX7NOScVCvhIhkuL/NFnK2kmw7Qv5JmnahjzGyGPvFdT4bOsb7X5xGvaU5eOABoU/Ok4Dg==","shasum":"603711cc35027eaa403795c5b0c498c07daa9176","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.55.tgz","fileCount":15,"unpackedSize":38739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCwM2nV4Uo3GppACIpECODHMVYAGkKKvLjRmFoZ5fTHAIhALUxRmm87yeqJ0xnxd9TUeQpNgge0K/jSR913amVCzmq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAC7DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQGg//ViKwE3dGqvJEHlnjFYwuBHOtsw1oHSVq5SwS9i7WEpXMU20d\r\ng6ocp9/pgaDn5SVEs3kZaeF/he4Gv1MjqpYVeSNliwEyOzfU5lndG8ty9IBG\r\nB+oElDcYk8GzMwL0a9JKAdoFiEp7D0o8hmz6CKsM6qkcEUv3Zc1pKxcPs7Ca\r\nJWgi6ekhKkp6DYJF4u1lDvP7lTXWpOdtKvwQT9S7XDRiop6x9g1Grjk/ksA9\r\nuFUOI4+s9okBkJmqqJ5rYXyYFxQt6PcJMwKxdBr7w49Iu2Qc1tjLBNIsYBoS\r\n4rDTDV1kEAUhRNbPfak2nvXtMpg2HDl4QhVjeF0+fcTBErgs5om8fwfnJ4xf\r\n3MugmT6RoozkmHc2rqnGC/ur2gIp8A4uC9xH5QfIqn2XUzSwk4no3k6q4mOR\r\nTIWeK2cNtGKlPWNQlXL3Ns1jd2fIH6Z+ckINiyqIvtCAbEY0VbGzfn1ihkLB\r\nk1JQeWbF/nwJQeP0E7yK+QyJScAdao5GyWAe5WhLNh3la4YA37+KLDX9DR9Z\r\natfCotSJhksm2m8BG3vBHTAtHAkmN4b7+66pPcsPrdiJ41H67LXIu0+Iyuim\r\nSCZetcdvAVWAjCZVjJM75dv3oG3OdF6Rxwbf67Y3NyTAcJLroAdWg6/vAdDe\r\n+NuAeZgDqK2w0jyFJ6Ol0M/P+OLIs7AUyyE=\r\n=lGCe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.55_1677733571164_0.6793029674123958"},"_hasShrinkwrap":false},"0.4.0-alpha.56":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.56","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.56+2c792fe2","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.56+2c792fe2","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"2c792fe2013d48bcb27c2550d3ffa1377638a479","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.56","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-hPX7wPMaq/hMhSpDSnH7kkqIV11q1yx31mPnKKZbAc+5OjS6eCxm8hftdEau7V+ryC853rJ8krTRO3nhBXFXeQ==","shasum":"642323520b64026f1702bdbe5b4ca0de36761b07","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.56.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFeb0j7jgtRXQHw/5bsDsWFs48BnQYwdPdMotL5SOvlxAiEAlOvXLW/OevOt7/wvf/LoV3ixIieSfT5Kupxm8KVhvjM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkALZ6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoeag//RYbP3hxEhY4dO/5Zo3hX3DF6wRXA7uLRAaN6AzPUtytxz+k3\r\nZdtIus6WXVYjvUHBcd2FtM2wxrUaAkgLJ/ykNe/Lb0wMFdPgJNR1Rjm0kSU7\r\n0yK7uFVRLmiDP3fRn9RGIB6ZwbkAyDzSbH7SSRB0APad/PLQ06t1M7gyPX1D\r\nKawtpM5gJsGS0qqRADlm/yXvMeYRXPZZc9fq3QabBb1ABXhxZJv/cBttycQ7\r\nwYD+GdnSlTdcDFEiE/AUSODciSCRT7vUpHqOU2M3DkRnBfcr3Qyorpyp4jY7\r\ndtYuiozyyNYcSeE39ltd8LU6LqZgvfxJiej//n8xtKl1+7uXpGMpGc7N0hnu\r\nfK2qeNM/FBW/UbIQnrZxftXjuD4FfNWCqSfUUwJvb40sgPrhm8cQppBj0oGR\r\nvHFa8cwcWQPACkE/PwX0GZJQIfC8zXmfXQl6qJz8dlTbm9b6g68J5qvdXAWk\r\n+w0zAY2K9DVHlahIfHCBYxv65V9neyRkSWNFeaKy2xV1P6mQd9wTyVNsjX4D\r\njEwRiTF6L433hNFa3kwIImBhsAMYc9RB07iYLVJlN1xtCcKSKgUTDv8A6oP0\r\nFdROe+/7/rGBbIebdjf+t3DP7A6gKyyQCc8HYoZpZV7KH8y50CkHvGSw5tmr\r\nHKIscAXHk7f0TK557Tm41YLv0WQ1qtVyzDI=\r\n=wRmS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.56_1677768314571_0.8761096288632997"},"_hasShrinkwrap":false},"0.4.0-alpha.57":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.57","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.57+18abb183","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.57+18abb183","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"18abb18316f155d0375af477dedef9cdfdada70e","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.57","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-akuYZL5/GEfvKPaFKP/wCOVaV2xcKZnMuPRiLqV3yg8dTAas0OsZK8IuaYlzpvu3+Bg071e862+tFnP6ZO1uJw==","shasum":"7ee6fbdfb2c2e81e4343e9d73dca1cbe465b6612","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.57.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIADhMNEIbaU/PAyCmozenMkeP0vR99j6L5wySGWVUkH1AiA7hocXT/od4fI77q96CLgiYrjZDL9Tv0f7ObmCFGNJzw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkANMpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNOw//T0c7qPANlGdPLvhG7JiTqsp8cisaJHutwFRRV4aiHsSx9kZh\r\n4d3Ua4qxdFNHyR2IsrbJuKeRrmBTTeyMthafvZVjAt34orD0mVt7efMRLO9i\r\nQCIUhKbwoc0vB+ZtCZs/eCLnz/7PGgxzY+af+A5YJLsWpRKWIgBS8bwm2Soe\r\nexG7r7v9zrMq3dIxgTCSNuKIAx0HGPtQN2K7SCA6HUW2A/6UD+AR05resu9U\r\nctnBcus7VqOb1jbM64DZNnv+J79HaKXTwYFnsXiRSGtRfJNEghtCCHDkxaYI\r\nh3FVrmd0j7iOygBnvGW6XVgW6qTFqrmD9HJ7cv1+wWOKDdOdqP7FOiDKGBWR\r\nXy2DmkB4Xf1Cj19v3ve7I1P1YWFSZ0bIPi0P4VmnGOikEMHnUfSTx6EvadaQ\r\nbDzFlZ8o0PIBD0WzGCOCWm9lUU90lnBrEIM7oUANF7TmSfCaAWmTf3AiCFj+\r\nt6AAR0sal9rHgRCwHmxZ7vk2ARLxfPaKhH13jz2te2DbsE/a3MEPNweeIMVp\r\ntggWXVsNckvCBgZyn4g6Ce9kQ1kHGakdtVs4/i/uJmmIIxnrw7q8T8PVqJeK\r\n+fYFneN3xjdata58+MBWRSpTzq1Xkzpn7NOOGlPREs0weFxgU6D/aw0V3g+s\r\n5c/QCD/HTIY6b+GoGDCQpL9sC+joBwSm/P4=\r\n=3hC2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.57_1677775656952_0.46753361296484863"},"_hasShrinkwrap":false},"0.4.0-alpha.58":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.58","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.58+fd13bb87","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.58+fd13bb87","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"fd13bb87a9ce9efb73bd780bd076b1da867688c5","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.58","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-NvADhMPq7z/LoNecJNDBlgBxy1vcY8pLYm9jRPwYcku8x2c4kRwjxZ8HVH1UgYrXoH0bWmWdFm+9+zh8Ko1V9w==","shasum":"3252363b0e1e065433b7e466a3ae37681e408fc9","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.58.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyD5YYOqMBKS+QI2wDWRURZBe9zYXdyLHKzxhHVOw8jwIhAN+6eDMSfH55eROxkqkMnUCY9KDsJqXhcibm1Lo4s2W0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAQEUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCgw//XCJvX8fvyYHz9V0q1kktvzsaHGl53nPUm4Ml8ePf4LMALo7n\r\ny3AEHjKu59TpXXnhOZcZCMDPgHufQhYfa/U+jjAKN1dJm1y+o+u9Ssb/Z9SL\r\npHiAPAbW+TiPazKPDRgGuzlKV8LhYtFoW0d3ooUdMIUT4JmViCVTP3ZWtxnQ\r\nVtnA8fw3m5jbBr2FWyIfjvaGoQMTgn7H71eOBm0FfKDDlFzLYWUbkxgRUlHO\r\n7KnuRW9nhxokpX08SFl96FK+lNQCMb+55Cfoy6/PNQMiC2SBBKM0kU/zT8KV\r\nORJgeEAjou9uuHnzE/yLwjwA3jcm72LgwBwuTZ0xwlnKRg1kYgsFMcWH1fGR\r\nn456tT0ZUTU6b4JsBpgbtu4OeosbNioh851a6lXiC1Sp21lx6LI1Woxlp3dE\r\nrcxbKU7+rqowSREyY+litMHw4dU7cWsZk3pLKeU8GGprHklincpsR3QmEJh2\r\n+8VkZzVfJs1nIklVrTA0h5j4/qGqIMJ779BRAss0uyfG2d8bzkt6UTi/eyhX\r\n1vutzMI9JEUxlRodpRSAMmNCqLyAWkkheTutnEsj0MiLpUZmxDMLcLi2L/2E\r\nYLgfguUPRAnCVt/d/9OtvmYPx3FvgwKXFiHD508jr3lDWhyQ9Wazz9klMTXO\r\nEoEerGNJ38T+Qlq1dF0PtXmHiPjq5KGaJ1o=\r\n=dbvl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.58_1677787412705_0.415974353562123"},"_hasShrinkwrap":false},"0.4.0-alpha.59":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.59","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.59+cb4e469b","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.59+cb4e469b","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"cb4e469b35ebcf9bd1c2c2aa7b03757142b0de8e","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.59","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-0E8MGfUi5M5vPTf3ZLUd06mdfv6DQJhK6XVsvt9tc1uvWkswfCPMJTbhQu2Hl9lCUnf6EGRfmJeSpE0y9jWHmA==","shasum":"aa9167bdaa7dc04a7f2e984f7d5253191873505c","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.59.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHN++d7Zpb5H0TvxxwIEnGIugV0QRj6FhDNB0mJ0GU4AIgV0FuCnwbTHmL562hmCwi95S7ujsRy/WO/RFVzsu90iU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkARgEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKBRAAn4qhNMV9Fkrjr4/o66MFFr4tJlo3tt0Qe/IPfjHHj9LqSamF\r\n5bAqytjSmOfuKxuigGjxAs170t2qR545TY5s0ZJCVFbPrEHVuKilfdaMP84Y\r\n/TuG3+WeL+I0JnRFRMzD29AUXq3B/M4KwDYN4LuKf0bR4NITKML8ZfU00riX\r\nBDAZ1Dx10qXsHXkcHKtHLldw/ISTCw5l20vStHAyK8UuNsBtHxFEWnJejoBw\r\nwesegbjD2ZQi1tBI+r+wfHsLleGy3TnpyB3UhukpwXzNBlYS/6XwsrTy5PtG\r\nc/Izl6QMoyOoeCWoSnT4tVEn9x5/vOBEwJbdiooNsbrGoba22+2Ekg1LBppi\r\n0c9LLkJtuCgQDhd5p1FZynZKMNyJSCKYUHFavc6HQxwY1wuwpUj2rKXTipQ6\r\n0fDDIhmX36mdnk9a08xmqhMnuakpSPmWHujvvhLmSfpJWHGRz77nF86I7uqy\r\nHD3MVl9LJ0ftdhpq8XONj73eAO0GK+b+0k53wwa7kNL9u6GXVzWH/VA/NvgZ\r\nY6SMTjYR7F6vb5kZx76ss7gnlnfFZYJsDmeu0iWVNOv/Jtn3uqvrN18GDLKY\r\nOed0JGu3+Lc88IPJ6Uzkl4/kAYt39ZMCWlcojMHMAZkYabmCorGQxSi7j4rb\r\nYei0gtdWe/upOiyhlLINGwaSD0TVt/fqi6I=\r\n=EJ9j\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.59_1677793284709_0.19942413529075176"},"_hasShrinkwrap":false},"0.4.0-alpha.60":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.60","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.60+77959756","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.60+77959756","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"779597563a4236fdab851df9e102dca18ce2d4e4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.60","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-d0IRiYGXRC/zm5holTnSj5l8k3gOHOfKPoENOamE/563CxT3dBsZZC+XUqsjJahcMAZgs/3DEs9XSmJC4/hlbg==","shasum":"295c9b46f445d5d2396056ce20c851077601ce6c","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.60.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIET2Lt74F0mXpeKqgIPvyw/3tBiAxaYnf45kzbZa7ppZAiEAkNgAgvTSV7eQezAjABMACnSPJRh4Dotmg1LwwjW17tI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAceTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmre/w//d07hQ937aHCIO3AxMFHMhN3ULuFVJa0YGgR/XbYsLvb0y9kb\r\n5JN+STp1yXqrvFvRJbLnOCsNDgBRWpVPLq+n9phBZZkHnPU7c7+L8xmbno0d\r\nsIkdcwWr+bJcp2wiGVkHo1P4f6kbe7lIMdQVbeyi/Z0K+g++++OU63RBmnfB\r\nCHtfWc+VpmPFGSpAo18QknOT4SWEU5qZakMQWhX4ZtkIfzBl/qKP3ZNb5vlL\r\nn7kKgoiSxVbn/SvFidPEW9EF3XQSkTQ3E+fOyvi0yYdjT6/LyeIMuD0qkBCg\r\nTp3HUGyG5YEFfVH5M5PIUPtGjWY0lyqcahdDddjHG+iZR0bUvmMRh1lZCK94\r\nHiLfkm+7d7RXBnPZR7ZUXc7Ute2ALhvz7yi/1lshz3M04Ik5rSFfDYmkYwpT\r\nIv0sPVKWAC1/Y7Hm9nE1O9cWOH4DfakjuNFEffTHCbdUo2S7ehfKd5cQq+2e\r\n0anp++Qk8MuvAHlT9gQs7JMC8oMeRcUehRNLL5qiDVli7hoF4A4/xJVEGafH\r\nyrW+8q78Mt3Ouejt5A8NSueaBvb/jnBqfoetunYF7fAe3byRlnwJuCvwV+X6\r\n+ViJHdjdkesky/wDZHsabfNfnV8gq1iAjEKNXugStfzPy1ZnmHgjDs0R9/A4\r\nSuhoF+3ZRnj7oZEgNPG7hKagi9z1hqm9rmg=\r\n=qWCr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.60_1677838227600_0.9146312560482421"},"_hasShrinkwrap":false},"0.4.0-alpha.61":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.61","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.61+8f6b3446","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.61+8f6b3446","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"8f6b34465493551877e68f0ce3b20f0bcd4213ca","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.61","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-vGY/r2isbtx0dbts8STqy4jZvrVpaiYvT6r79dJgknu/OL3iURrcRi7E4TJTqRG3XZN0atgHlz46bcnVdJWp3Q==","shasum":"94204055c78175ba82f3cca93ff0544661bec65e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.61.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoslDfkO1MES3sqsM+rR4wEHFK7xeQsD/lEtydxYE2FAiAC54iMI4CN4AxQRSkExv3BYGX9XLmSGqZI6zdiBA6iSA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAdfWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1aw//bwadJZ5n4y2mgWz4mBZ9Cv4YnyQCVeUsCbadh8agLhQ6Rxvf\r\nV03g79VNkUpjXYSbiuukHD0HQ7H4OcXMsJvTZOZ/bJR/TZdiPyq+XqCaa5BF\r\nyi6AdFhmr1fHEBPAWW8foDXNnccvXjTMinIAfUGgCHs9IDdSS87v4TAJGShV\r\nic7DnoToyLVovM0fBg7CPSEVA6IlB27BttouWwHcJkftXZDM4KwlqeK/Xf+h\r\n8IaKl93GOVEReXJGff8EyB2Lsl5F70hyzM0x2XmwCydn9c27kS9XWTDIdRhi\r\nYVGqCvRvUo50ob8t9Ap4TICoGG50/4dvFx2xQD/ZvUShZOup37fMxy+PDlMQ\r\nwPRqv/+L/JBmOzkJ1v2RldQ9XDTDKvN8eSUIsEA2d/EkF1k3XDKjZpwDZoWA\r\n05a+JkilR+zEnaEG6m+nhdI8ZZXjBor5sCP3JIsu1v2sVak9vcwiRhdT54lP\r\nuFXUzAcMyzZzDgj5OrSA65tr1lBzoJj+oYL+WMoawkmLGUKy1g1Am6Thf2UI\r\nzv3TApdKxBwy7xc3HNB+BBYBRM/cBe9RKLdeDxHi6FNPQCP6KSjbXb0cD8bD\r\nXMf9YLz+i3vyDtnmIQ0E2rDNeqIq8Fj0/YlHiSU9eGpKR9woJBjbfBiN06PI\r\nJUck8/5bBlTRGQfKCmEFScYBof1p4DCF6xw=\r\n=o4q5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.61_1677842390786_0.09872479884009633"},"_hasShrinkwrap":false},"0.4.0-alpha.62":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.62","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.62+c1335383","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.62+c1335383","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"c133538356471a6a0887322a3f6245aa5193e7e4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.62","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Xvw96TukbU80lc17nnE56H24zYRqf3Fx+PcwtkGxqOKGjvQOt8N2eENuojF3vwXgqb2+e2gZPLc1fiDHhFWTOw==","shasum":"40fe7039d4c8065682458dfbeb034f5bdba7a02b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.62.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqX3bV8egqdlbLhf0fLWw2yVMhY8GpG7wXiNGCz6+GRAiEAqIJ4Jtzt3NXvfYxk74VflUgMVPO5xUKGA6OL6DKmhQc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBc6hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNJQ/+P0wb1qTh3643Y9R3VTWHmascjRd3vyLRa3ubO92urrtv+D9O\r\ngr62M7tts8SW+qyiGc0E9jgI2ryyughagEaUwTaNApDYF+0a3WpydLwVHhbs\r\n6uo8xFNwdzlkW7KJz5zA/CS2sXYBA0UAXHyKdKg6jeI/8etu6bmMnwU9Aghm\r\n00rCT8Lktv+CgIfhC6tkTAlam1++5w/70UVFAuhtL6WsYPIVwy8iQQWgUSzK\r\n3Pw8M8RFPW+nbpuhvy07tEWluhpuJjhHRbRW7tSGamzPxUGv2sygFzuxa5OP\r\nxa0p2f05suzqOiwyqlwNlA3OY1ltOnYWicEWYTf3KCS44T3zsqZ+CcM5dbTh\r\ntmtr4WzcoQQkxxrOBLhuXG9Rl8YWdrUUqpuxZ3/fvXCEyQG0HyoRgwRVdqRm\r\n4wHESXRX+zY73+djVdA04wHOdD588iXb95R2VqcmrFZxtDmTQ11py/2f0O/Q\r\nxOuRNn1i4DyeLe9cHDG7x8RvADqWkpf9JZivypP2inujh23mt2E4EEZAZgNN\r\nTzZtw0Ts6rgplmjbJR9wasZyhnXH6VKIX0Hx5w0+GGWsEOdrYbrCzzOH2bSN\r\nwQ1koB33f9nmq8E3JFrvAePb4I5Uj/R78D75BKHbbcbR9/ug28lGsor+fnni\r\npG3eGXeGo4CuAjOQsacH74ovv/ATqA7Srfg=\r\n=2N+m\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.62_1678102177143_0.5025503691690825"},"_hasShrinkwrap":false},"0.4.0-alpha.63":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.63","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.63+953069a7","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.63+953069a7","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"953069a785f2a6b8d1e11123aab3a09aab1e65ff","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.63","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-2iypM3labaYaO10jYBWNlHADf8wIbURZukF13xm2oFAd5LqYCc5jmRm3tHyRmiW4ssJwA0/f1YDieNtyoNEttg==","shasum":"3299c18ded57fba7c0105a0f021444d55be052ce","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.63.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0BBj8HF54Ul5YCKYtGw6awBPxHl7ELQ/wjrMHJ/x+UAiEAmDAJItzxZao+PuJSFfC2MzHuH3WZ83QwWxvwuaGoxWM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBesSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR/hAAi+fmWXOXa3tUO7FCel5offj/osvEVKWK42y24MM0WsJ1GSyv\r\nwB/rBeFURlLZAsGX8CL+y3VKsRd519/GYLAfrHGHshnMjXZPKimVNZQhED8f\r\nqtLnbbqhupmd8q2gFuQ1nrfmUNtv+WEhe0j9UG/mWyoTtNtYt7anVuayPHhD\r\nVgGBAnxBDimAeWahHSt4nVAoL9uhSgdraaVtjoPx1PCv3JBChOAMspoq7BLQ\r\nouqyXRiOJ+/3jgG9pShUu1033chw0tRZj8AX7DUvgfLBkIwmwVEpDfQp8GnK\r\nFaoKJDwNo5fo6FiazTgmtFlna7o7Y7vWJBxkze29oFo3VJ5jGsYfEl7nuFmr\r\nJb87be8I0ZUdONhduBCUZWp/Mmngx+nEMpiOCjGes/WqdQIWnoNz0bcxLNbF\r\nhP1mUjGO7+MPF8fF4Us+W/+X59Nih7mx63DcgS8YSeGgMNeANbTxMw2MtfxB\r\nrl8tQT1oaJDS4HteoILB44hc0b+F7sJ73C4AVfBmRaQMSQf3qe07LGHrYuzE\r\nXOIbEKxEbHcdKZ1nzfq/zhIVBLq1gQU2wUxsuTbOKfU+nFrwHqeknwy1LDFD\r\nLmHtKFAtZK8y18Jz2JZk5vrkWK8K+ZjoHw297iy+YEYxJ1fUt7a4tTSfDORX\r\nLrSpdOUv190EPCqPGaiLd9/3N/j7TdVhAfA=\r\n=Ngzr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.63_1678109458090_0.21969267341490628"},"_hasShrinkwrap":false},"0.4.0-alpha.64":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.64","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.64+01669a7f","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.64+01669a7f","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"01669a7f9bf60fe6e4a57927d43f1513a64c31ab","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.64","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-2Que5zWDSv2ZwcmeOJYd7aUnCASp6Lxi5M75uGJaL7ielsp7g30hBQi1WA7XCQoY3MjXWpko7nMwBkiwO+YC0A==","shasum":"6b762970033c5635f9055549697e04fb76e0528c","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.64.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHnP8zbeMgHdIjK6NO8MwUWstMyTrw3J4e/NISEi4Ob6AiAtGSBW8ja8KnnWKw4qK4wKU9hQM8RS738aQfDZgiNdAw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCJMCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUjQ//Wjuse2/r6fNWGJ2wdMR6twWo/j2LZ0mk+3qtnVQnzkJYhiT6\r\ntTk2/eP8mBLZGGdJGiO8EHPTbhtrVvqzvGF2v5kq7i2R2WPXvooe3LwMdJri\r\nLKbi8mYPGn4A5dwpTL8x2ICZ2RMEk4nT8ebIpvEqV8N7+ndlToCcladGBlYf\r\nxN1GpCVGlcIAP96gQIBJktgn+luV4mFI9HpLous/bZR8HFLSBHLp/OpZ1myN\r\nyLCLFccw3WB67ocVpIEwui6OvfZaLMD2b5DRueGxV/pJvBpMLbudTZSNh80/\r\npX7w9ZWdMhszOBlZ98eHO+MiERKCyXu4MSbzmFgIZ57X8pItiaHmpFOIHY+s\r\nLL4N/jRwvdmcGPNtOIiK8gyBW8vvNdegx4FFBDgv7IThvzFKJxOIjsUgLAfS\r\nJBzr+ZT1pacboq+EcBvB955onBIbtO59o5bN5HdrrHhHfCq5gbGgeVTiwxTz\r\nixNronN+sXX8dHNxJ8aVgnlHz/LO5rrgT+SCVMVAFKeSqFuJylEGSdZT/+hm\r\nO5UnOIpkzXOQmu9nDfx4TDNeIsXpL+mpl4++APgNvlm0dFIiNsehwIdrRdwA\r\n9zSXARZWpXHCabhY9AQ7YJ05BXVllP6C+iVNqBTsOWC8+T9VPM7NG4QnF9bb\r\n8+3Xipjp3kKHTjkifP0EIiwu6XaHtPiF0no=\r\n=jqB0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.64_1678283522592_0.4212209673981908"},"_hasShrinkwrap":false},"0.4.0-alpha.65":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.65","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.65+39c4ed0e","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.65+39c4ed0e","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"39c4ed0e88a59a7a8bbe763edea7445e9fb20bc4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.65","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-3j0wpUDRVJFHgvH/K4XmpWq/l5g2CA9LfIS1EfrcEWYwirJnGXNuCB+pBcgrKCyv7qD4MPeWtKslzqIez85Jqw==","shasum":"9eb2f0da2cfd47b1802ff7eb354c822450e2b5a2","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.65.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTgsoN+ReKuOBXyLmf4265h6ZgcEgHslVHdyrxoWWsLQIhAJVyHJJFXFEsUA8s9lRZlH6kUfq5B0ONl5B5G0RZ4+/+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCK/GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp00RAAo4LdBSo/aW0s8kGVG5v5bsOcfNI9/AyIGFZ6XUAGE6xeckLD\r\nweAyh5Xyui9fAhVMZsX2uKJRZp+w3qzclIywPCj1+tpaQSRjg/5QWai8Ylqd\r\ndtlHAMp22UpnTKr4QGULfaNUSGNO17u9+/10AXWe26+0nZIQRfow3E8+iWGd\r\na3SiMsbvMF+NKdPaopZ6NsmEe4ZVwDAB5aui+fJwTNzHVo8rN4zRAGryM9C0\r\nDAmFY2NAw7Ou5dv5L9ju0jMVta7CqOq2pQeWBODCRwVxXe47Fy/BaFw1RePj\r\nn1T2JwafWDGq/O9C3vG86v76l+e3n39F723X1cX7uHp0v4hc7y8821GD641j\r\nNt/7H4wd04um7lUMhWdnJedrBjU3wQqHQOJ2EccYCWCeBHW+4LwBz+mHBwHI\r\nl3+R3maMIV/5IH5u2D07mKw//3uQ5H2mLyYD5/kmUwzRzQHsL59TcJb9bwwi\r\n/wdC+UlBqLqpFVttG+d8AxRRPtVBwoc3gA9in5+JldZcl+a/PmqZ/R4PV7Jl\r\nZF+rheWFE1kg3fkj4/LE8vxGR8V3mkLGSypPdMBP28BnblDxSiVxzE/4e4ix\r\nZtbos6Ze+BptZDIcoqB7pyj42YJhVu2QnstTKi3TsBJ/TGV5QZCjOpMvg3/y\r\nJWrtbjMOS4ZBrzObxm0iuWfVdstePulWL+k=\r\n=ylyJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.65_1678290886415_0.3822014411255088"},"_hasShrinkwrap":false},"0.4.0-alpha.66":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.66","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.66+c72ba149","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.66+c72ba149","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"c72ba149bad3a4596f5818b28516f6286b9088bf","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.66","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ctHJavrnb3OAig4ia8OousQnvwpp+ysxXrEjd8J8/h/BPSzHG72orgmTTC5EELLihuOjUaaVEHDLm5/p0YdPJA==","shasum":"2cd029ffb46188aca9a912e3c710ac71356df967","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.66.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPvwAWfDEor6GAa0MRBF6Dr/846+3zPzFlh9ZnkPzLRAIgXJAnf6r2KuELhUgdHuO9rqCunlmoEeSAUQx+Fdk6DUQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCLr8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJsBAAhf5pwhpInChvXF5MGVaybVIACm609Ba91DIY8H/nLPKTBlEt\r\nUtcbCzJHA0PKMF3UbOai3Gq5q3Pz61w+08h6h87F9OJ/FoHes7+47xhKWxJ2\r\nhUbyKBFtSoTE/AKMix8eZxcgIRLAiYILptb9i3ixLvBo9CVEPI5g5nS401oi\r\nvfWkWgwiWxD171tw2Rr42BrGKmwuyJIFhUgEFY02Mj7vFcn887uQinI18v2i\r\nvHNJG4vEo5cNrrJ5HCSZJ8mU2YH/zcVN1hxUJfFnRldnZM/IKTAxbFmSSl8z\r\ncQA06usXb5phJsQ20J4qtNqij9x6jrQ/dbNO6UwAXUvAYvIgB0HghuZqLHrh\r\nzjNhSf98UWp8Nq/qRCwKpkdQNGLSF2rRRoq5tVmDJUHINQmGAHVpYWn5KWoz\r\navTCYGx9be7OWvGWpX35e/+tswEGVfeXmCqqUiiIGY/MGRhq3RU8fevP139k\r\n6hS9PU8APPZsNnV7UhTF0ZIWQxZBtHHpvMp6Scd+VenNKmw59k2waKaT8Lu+\r\nWMgDaf0Y8hiJfni4WfKTjp6u3cnDmWTLNJt9IkPlObqchJKazNecDpr7s3z/\r\n/MjfUChegt1b3vVk6QoipXGvI4xCqpedJLYnV7i+JzfYaJVB9Pw0LwKSmzkC\r\n09v4xCqKEzB6eRmTgR9mSa2zQ6LXF9zZiJk=\r\n=0a5J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.66_1678293756107_0.02027366010709497"},"_hasShrinkwrap":false},"0.4.0-alpha.67":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.67","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.67+19cefa54","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.67+19cefa54","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"19cefa54596a4e4848bdbe89306a884a5ce2e991","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.67","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-QdTflKUq5DDsONThOt3UCtmllcqnB9pVdOd4tjCumZmgAvyqI/wvLm5vEzIAxsRLPATQlAqqhNx4sRB6GonLWw==","shasum":"f9fc3e86cd9093f3b4e332e046ccef4bf19b59e7","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.67.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDi805wPOZsMnwXJKdnW5pRBTpUzM8Er8letWQZcYkhNgIgLm9e7asRHK0/lU6sD+2ttl6UvpBoBhPblkOx2dbFxrE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDFaPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonXA//YVGF1c3mM8ZT4oYkrcLibMiOqsATdAjK7OIOt4MO+fLwVxy4\r\niRVrwXz8G187/vqV46JXcZlO2Na4+VOD0aqCzrChaws2jjidbs6gLoujIkB1\r\nsEnuLegVqR/7rba3AFLA5DOcHVQ6BGsJEBIIGaWuz3p6+FHZyaYCzk+8xVYZ\r\nDDOtqe69sXoPjxQjHIhFLcjNG5MZ1OGY4AT1dvajMSK8k3QHyUN6MLddZy26\r\ne4WTqC8jnckko29b3/Khdvm2TRNegm2pYHQXuKsU4MrKGE4r9uA1tfVA6ZMl\r\nWVGjCFIPsYKnNCU/9h2+DSMrPoqsEHXg4n/Q6abJ11dZNS6jQ1cmTIEQ+bIz\r\nay5R+5tq++2WWo2FSgImrOtbPmadlg0M8/TbV2tDd+sakhcIaZgZaRKfgPiK\r\nl+qTwKUmqxudxegm0beXD0ZznIx7Dnq6sd8gA2u4Vq9Aqut1Zoe1x7ITlnC3\r\naMGD3ZPEEFOJb17yIVVLiar9wxeEJkVhlswzXPho1WtU1xrpG8n83U39qzau\r\nQWM8VzL3iTlh9GS+AV9dcht8qbT3fueUnw6LB+uSpfsGB7VxvXQgOXfwjYph\r\n5sYhEQAYI0qlnWoIq/b6+c9HIevGAZe9vqvLteZ2yIMwucUfAJ7U6f2PJ7su\r\njN15WNYNzrsufjYSWPrJRwkjbt649y2ldoE=\r\n=naya\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.67_1678530190887_0.9774370476668046"},"_hasShrinkwrap":false},"0.4.0-alpha.68":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.68","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.68+582c7117","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.68+582c7117","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"582c711728db12b7d38a0be2e9fa78dbf31b34c6","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.68","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-x4tOKth2n3sYiyttnehJQXDL5r/CgzVZxzJPRI5s8BgjHiPr0pGycibsset3+E9Fts4UNrlQV3lLnPARzkIlyg==","shasum":"da507841020c986e84dc39c698b626e7c42323f1","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.68.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTRnwA3Dac0BcNJNnJyrnhkV1+gHAxOdwDbObSGGdulQIgRT/98Jl5E8C1oQ4iZnpn8gvGOSrH/IWuhyZNNVQ8xX0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDGHDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMZA/8DFGSxemG21GXVQj6RbW2pxzR1gnCZh2TxzaszVWPLnUzE05L\r\nZDVEt6rYrAkzTPDlhMW5yg0EM1brC72eRnXoCehdcJT0YlCMHZlL9hCwnegM\r\ng7NFrT/+dqmexlmG3XPpKoXrp71QbYW3nVLqI9/foNtZh0BvE50dor1KfKOQ\r\nJwROF0SWY75gyDnXqPaHHZgvp5+EgWU5A3AlpcpBA/zdK4uHN+uKudWRGeLz\r\nZf3BQc37pUoA7Xf8O8Q0hi7yRviFGGpFZCBnbwE9tCnIfw/AHSbU+StAL2U+\r\nUIGsBKDyQ6ejQ78u75gb5NvrqKMNjEbtxO3YeRgxiBsl5n+W/InT1fk/edBE\r\noDC4Db2tSA8ZP/p10INS8otPkEQtvbSLLc49p64Xq/Cwz2AE2VCLLLG6fXJW\r\nAMedYcWWAN+43p/+ipk04MXilz7PyjFg1gPywyI4+78SwEjd9eUjf2ydVedZ\r\ndBSC+RVTpU7uvLBakRi4GTe2fCMgo+xcMNXM6EVHiU+G4uSMlLyVRKMaA/Gr\r\nKXTRvMdBGoo3Rfcn4jqkqkaZKSBiCaVu+j1ejxajMqzsuOgFBWjc/zI7T/Ua\r\nX2pXdQWzquf45gy7YfQPD/Qn2j4UFI5KagoLTBJRY9qbaNjRo+dI+BnswsTl\r\nDmYxAhltc1ctI1OZy6lw0w6fMQDnSy3Je9s=\r\n=YmBN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.68_1678533058984_0.8586157523958533"},"_hasShrinkwrap":false},"0.4.0-alpha.69":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.69","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.69+122cdde6","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.69+122cdde6","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"122cdde6982174a8e9cf70ef26a1393cb3912066","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.69","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ZPSjI0gGzJs2+T375jltnZJ4eb2FPPSR18yDBfGXoIOKiHRfCwlV/A40qsv21JtrvAzzljR+z0RpjdSWGPg19w==","shasum":"b8d4b8f07a159fc9ffb88e7fd162d7156fcc130d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.69.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBXbyERAo2M0oZYERNX2Z0QnbKrhLNb1zSBEzr42Er2WAiBW7bI1bgOXA8Cmt7ZbxQgI8OFn5kacYC0RtLhP0xPbxA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDHVMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCzg//ftqmiHFCIkBnL3X/yY2WdZo5t6evicziaAksFsbu3l0Y1z1v\r\n7Yc5ej5/7HUAYFPp/4qfT+wzpv4mEWp9WpEOdOQvK0nL/frUv2Nb6T9MRXP6\r\ndtKan/EsGrWrU77psbOI7YwPekf30vTWSHbiHHkfg1dik7Gq4cBg8FzypUb7\r\nLIxD/+3NWxiNRIAnSUw6j53eXsOw7K0h7P03E1y97ACZPjZib/F/P0NnLJ2i\r\nymobFXiJgcSZhRpuAOubRI8UVu/MIx+AHsKpeKqmIpcF+3EBXq6Wp+oT5cJO\r\nFTbSVSxGMH4EMKhu74AuNnrhbFMCXtD81Ik7Y2D5JFD7DK7lX8CMN+JuI+uk\r\npOVl6UPHbnIWiIoN7Ik7Gd0dxgX4QbptKzoTwWUBK3dIeq1wxNClIvF03y+K\r\nulQv5WHaIsC5dfbK+zc6oNuIQ8MVoiS9cPsWUlOTdrN7/l5EQnCkZ9EtrKW1\r\nnh1cFyfqzYAKOTeoDpwIhw43yqLNNifI7hl3btoYCvDHfOD6O6d2Dj1kZZEb\r\no4yYuBX81pkMhgw4ABESUkAQgjmlY2KF+SnArrA3t7CgnHUlaAVdDyEeBmB/\r\nN8RKezpvhmMnKc9Pe5TBerwc1qZuxe9/mR++3TmqQS3Yb1DkoOGRGVcVHUU4\r\n+DwYLSDfcSoDMN1XrqdKHIqxqT9kPCvg9lc=\r\n=VMi0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.69_1678538060467_0.1420437452850687"},"_hasShrinkwrap":false},"0.4.0-alpha.70":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.70","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.70+dd6c0200","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.70+dd6c0200","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"dd6c02005135fb0260f589658643d68089233bab","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.70","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-abGPRd1JjZYbXspCd91K51Zw3dbDkea75Zf2ysd7bYQb1i8vjg7UAWlDr7cZkOJezMJqth8BqrYbkWqlzwaSXA==","shasum":"c225ff5b757865c7cd63de524545b45880fafa8a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.70.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7xCeQ6UhJkmv+Sl8XTBVrt6lx1q8v362pom49BTDa5AIhAJ8fsSjQgqHMPbQ5l7EWUcpLeemQR7AurNof9ON0LWHo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDJd0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplWhAAmFA/McCf8QpmOEJ85z7rm7E1U3/mHbKZotxBXXfUOCty+DRm\r\nMROP7iVpOMTDb1H1oPfesGap2eLhko/r/h67nu8BGCb9LttaVv9OONIaDD4O\r\noyDHbSua/ezkCunC+MIwbJneuZI8BsUs4+aw3L3z4ZNJazJKnmGiDQmFgDO+\r\nRUF/N6DgeZlrx0uXlvYUj+xOp3CSZzMZXR/lTGxGI2/rLf8s3dO6sKHWRuMp\r\nwPvo+mUhA3Yv2jZhS5KUioyS/L7tPqc2fqFnfd8v0oND4SQFoCb8K4DK19Y3\r\nrvkFt6JXw3lUkO+WKT6s66+DYC/egDC6BmipWmKHcgIzzW2V+vprbcXiw4zn\r\n4TWug+Mz23bI8CtF1B8U3uf8dqwAeBS+Z7CTuXbwXK57i2pM2IVrLJ9OEzqO\r\niUwduDopp9TRbpiNNTwQCBqnB+emPR5g/oOLCoNK2AJzXSB7PPUNpD185nvk\r\nBJ/5Qe+pYAeJVYko3vvjTsDfMZ3xKlDqV7tdvtjyBViWloipBWBnLFKD8wiM\r\neb5GWRVuc1bZJQeKlKy06+BZJYjBFD8y310I5tc9T04ivYkAnRvjnJLZClOF\r\n0M2UWFVu2CaTKye/3s8I3Lf4CSyMnKE/c5E4vusISjN6LRxfyJIhAvAEDNJa\r\n2TH4EK7I9Y5cABAZqYnQZeK9/087bSk1W08=\r\n=qzca\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.70_1678546804516_0.6838287355588484"},"_hasShrinkwrap":false},"0.4.0-alpha.71":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.71","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.71+a4204ef2","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.71+a4204ef2","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"a4204ef2db769de53d12f0d881d2c4422545c390","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.71","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-fBE66MkB8vGFka64lywt6r4znLqvWI1HhcY+qIt4W/NtjnLAX3cFqAI1TRHhtiIGt27FiJlR/M39jJgrVs8cpw==","shasum":"63861b7a8ccca5968f739cb312af5f0940ec7823","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.71.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwvbV3fqdDMy1xY23AWLUfIQjWaHpxXuMs+Jq4rYzTQAIgMn2C9SFFB182vg8pDpr0w00ujnmSBnglxMbSpDNw2yM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDJ9OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplEg//WhWDfBoP9xZVXVhveSDxirPcfDrg2aAwTsTv573b52xwzBcK\r\nucFiGM/sSsqUtPNAhW+GzAi8kIAJyHq9Yhv5KYDzeQGafSW4G97DwtMqKmHT\r\nBZH+L5cqB++DMrZ1r1fq2AE0TO47CChjBaY9hjU68Xy1zbG7i5/QYRFwZ7kE\r\nvVCpFkFxZwZmKRoW6Vx5lhrydt2nMVHR8ya4GXK9sDrlCRfW9H1GmMATDNrm\r\nPK/dleJFzjYke2JhNPHar5gV17f63vS3nPdLOdv9N9w4lQEFliS/kp3EFkdU\r\nNuXZslgccnRdN9MRyHIxYbEnGpypZjp7qHb2QqLlf6pjZhBM7LJROIt/U1fy\r\nUTEwZ0Ve4BlLjBHhqQ3tsBKd2PRDtcKrFWgu84aoBVsE5qb9EwjqQpvvrOpf\r\ndAzp6BrSXFnKHYv1DghHcUZCKb6HD8x+vL/tUMOj4nBcj/M7Hh4agAub5wot\r\novCy/rRGTRzaj4yabYv6kvLzKkjOpN4n9DKPKzEvYRonis3e/jK3KWQTDojI\r\noDRNpxS6Pvrw/dV5lNqkQ00zgco/UpLXwpzo6XtoGKZG4wv4TaXC8P/jgMxx\r\n5CRbsnESr4gFVva9pS7R6bPaET0maxdKe/WeRFC8Aw7NRWohEykdbJVvsYX+\r\nO+KeEjvA6upEXFCdLCvacOS8sJtxpqiPih4=\r\n=iN4+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.71_1678548814486_0.7226206525802448"},"_hasShrinkwrap":false},"0.4.0-alpha.72":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.72","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.72+d59366aa","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.72+d59366aa","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"d59366aaf75dfabf4933c684a7a5cf700ccaca2a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.72","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-tHgpap9Fj1KYhQATK5u5CCdQlNx3YHtszQO+ZAngnor1Efi/98yFwXekh/ngAEnCG3W5Pnh6AZNXtPKbM5HQ+Q==","shasum":"e450e92e9101a1830f215692850b845f17c663bb","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.72.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENykg/i4Wr5VyGHLpcqGHicSezgwplfriHkvYAI7TfOAiEAwgIbejgZvarOfe1uaNB4pAZPQoqnPAykNJ/0mS7OVtA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEaQLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDFw//T1DS/XGuWTRYGmu/MwXi0ouNY2L8ELryJLXtkTmTkb8xIc5J\r\nVSqDWukvttMZRf8+Aiw8dLaa96rKRoBSOnwqoatdHTm4UYPF6+ksltDmVqlT\r\ndsTVABV4amzrJ4TpAGXgI+8kU9owsufCPfRTtRm9/DPruMLQeBqEjUFsIVSh\r\nxCbCSBYNdiDRXCmebStv0c+L0aLpQ3GzrXYb8xOyeGs41X3vcb3Ct7myVY9K\r\nOp7tH8RKTZti/TtrPQhHeIAS/OLzxO7sHIAln4Za8H9ws1EPh7UdpxGDoIcs\r\nHIrIDrRJDDre2GBNVLqb6rL6nzmJS5sf5eXehWwt81+4U8Mw0LEvxlodhumH\r\nobu1aGAvWxhpkfz1GE2IOrDbl4e5OdLJ0Pw8x+RpacjOg+bp2SSKZya5G0Wz\r\nPlxYhwmRaSEewk+dg/ekJLS677s4oyto6en4BXsT+mF1S7DCq+rLUZAovNNe\r\n6R0+OZHeMn8RauJJpwjMGLaglZ16Yg/Spk2I+8F4JEEcyAeD/++t9BGo5GdS\r\nBj5V9aYNgR5CM8gRZL65m60xRK0pK0y3MSIUWxt56fl+r33yRYot/RkvWX3M\r\nKBnLj50fITu6336vW1DXHV/PsCHTSFlzvDnHK3lBmu/lykZ2W9zh/ZVg22l8\r\no/TfkxXDwM1BLuGbDsCSVhGAXq3rf3rsYaM=\r\n=TR8l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.72_1678877707716_0.992755509034297"},"_hasShrinkwrap":false},"0.4.0-alpha.73":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.73","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.73+f27fb992","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.73+f27fb992","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"f27fb9921e11e5bcd654611d97d9fa1c446bc2d5","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.73","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-mJn0h5XxKggdO104zHEjw2GOGxpmuhQgOTM56Wr8kVlr6mL/GLlWdRGHB5OTkZZiY0O8ImCS/sRMZ+/awuP5ng==","shasum":"3890fabda5b9440386249c265fe2e26c1268633d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.73.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrhIuCJBYGLOEyIMgaxMySG6iwOrRGc9ibEyc3rIInVAIhAK0wAQ2/5X3gLqDUUxaDYayJoZrSlZnp4fmMILFERhqp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEbl6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmotig//SHm2V7PdUVqfBtNHF/Vv8goltHkYg2Bt8bJLZu2aTNBpLyW8\r\nhUtvLGa9SwLXH7hN9+k/FlapT4X99DRCQEZqtO4yxwWTwkjn+Op9uiOg7FbS\r\nfBkG8n/LtAaQXTHfn4BFMes+QFH+KCCVengBhOwY7lgDsQkL5Dhu3TTNcVW+\r\niy9Ej+XB1MfMmxPw5cYPXypNEB9n4gWoUEVUPVbZQeQgzg+P5+VoZWKQXbO8\r\n8ecO7px+VVs/F0HHwcmYZ3BWHFTf8SmMCOcoHQUYflq7vygLhLoMXrJGmiEF\r\nA9KSKpLlmnTDWFRhmpqt5tBMTDokSDiGiYy+fboLpVH/AYIgrzPaH1Q5/3zg\r\nodYBOhVBA5aziX6ks/+anobbE+uF4Ezv89dX3+9tTbKpiKUSh5bzNLByBBc9\r\nNhP/re4RWQxnDJS8/tjsPjT1mf30+y2b5ED6rgOyY3Kmi+7vJGznwhHjY2KB\r\n+hu6MExfKu1Pv3dmbKJ8BVfkceIzPv4PCUAbEpIlvPzW6gnQL59ulLsYyaZR\r\nVruL/KE3+LHNVZm5xfrYT0E7CTbBXVwOWVYDMypZTzbTYUfxuGscNkWgqctZ\r\nHDcbuXaMxK/rl8VhkjRzHvq2z4g02RTWx0ZAak5IJZDvUSaPYhgkmKNGQ+Dc\r\ny8GJoQJMujFEsuuMGj6Rnrnd+LXKFf35EY0=\r\n=dvhE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.73_1678883193998_0.04848721772088416"},"_hasShrinkwrap":false},"0.4.0-alpha.74":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.74","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.74+0351eec5","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.74+0351eec5","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"0351eec52a9f5e581508819df3005be7b995e59e","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.74","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-o/TCHL99y+BFDXB3uwIVCFn7ivFK0bMlqtuFSHlpXMXa0IKcYljOGD+QWAuq6tuQX9YsRdXdZ6czRS1dtJj/cg==","shasum":"5768286ca558fc3719b9c1960f4c0bb5ef4a9149","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.74.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0Yo7G4WLSCnCGM2K/AgZjRI2BxBMM9hbdduaVfscpqwIgBBIucSCbTGXN/YYp+Rjfe5zuXqMQuCYrdkE9xYvF+PQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEd7EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVUg//aIIF7L0MaMhSm1/FVcJLFtYtr2R9sPKDhyCBlMqfmN9OOyIf\r\nKMdaQrplk0dyR2VZNrNu+1jnxxaQWpHgQ3Q4F8UbBYhCDXik2CBgrrIs2TEn\r\nP39tSImK53uAY4PduKWXY1IEk3u0cnCAg8azavdRFpCl5BVZulKCIYX7G2bP\r\n4/aGCdoKpasnCqM73TCEa6Kqw3KXtxJZg423DzgnlcJTNcrshubdOZzyXpgA\r\noW2DHFIDjpbSna3UnaQljYG8jRmDcGXjlH27i889B+4YIq46vdzYOaX7z3QE\r\nF8QvjRtf3cxRVH2jyaJAv2napV9wJBZ+x/iPYeFzgGJN5Zcrnc/bcsWLwnwc\r\nniywwjvyJmSrnge+2B1Irats9YfYAMt94ngiqRWSGCU20o0vlLkwUyozHaY9\r\nNO9uKn3UUmfusfp6YT1L2YWFASbAv9JP8itrFUIEh8XpYlKmLWzRqIw2M/rX\r\n4tOWHE2hbslLjuP27O+W6ApBzlkc3Ahf//zjPqeLpmTPnLlgrIa6BprgTvdd\r\ntSoVPGJjXap2USOBaNJRnvSNy8cX5jTORb/UOlHD2cA7vfqFlBexdQwv+5Jn\r\neA4alVBgKfH4QzCA2FyF6EZ9WGT9cdoSsR8s7yZDwjhyNk+jxNbRV4LoV7RG\r\nvTZKgCE72RTuQJ02Fb0iaDrA/kYcM8svWZ8=\r\n=/Zgp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.74_1678892739921_0.8383568332564191"},"_hasShrinkwrap":false},"0.4.0-alpha.75":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.75","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.75+c17013c8","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.75+c17013c8","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"c17013c808a278d624210ce9e4333860cd78fc19","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.75","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-sP1suzFblX2SgBNUe8UiFfbBJRlJXO1fKhKJBP2voUxNkYGD6DsEKBqveF58+MtV4e4KZXw6nwOTQajXXRltBQ==","shasum":"c8219c2e6c5946f6f5cc1e5668ab4e57c16d2b57","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.75.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbSi+D4t065TFD4/Aym3+URTdYUOAPOq2LBpIt7pycFAiBQElRWdGvaf0JyOOB80e4vJV//StC2wqEenH2qnJ7I7A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFKn8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq68g/+IBkz7dNzajm4J+v0m5uHaA00Ms3gOzmRgL74ZFXqsKuHwxZX\r\nw3IvBzDC7f9sUPO3qjIRFLCsz9Eo/pGKHpH0XIRrjU8vG6/VTDca63Q1HBlX\r\nuSRgkkjOnyhU9NU99heWScRekq1gZPtWiSIDKxxPTaYHAUENBRR6UAktXkf1\r\neegVcwVRMBlsuAjzDhu0UA7NAdAtpt3R1C8HcpWruVFxESoRvbaTUFvg/fCi\r\nCBA+adRVhF0JH652VjLeODtupiCS1PldMWjXAyh3q5UNeJtiY6Otc5d2pt8n\r\n/0hOzedi1b+SVEv6gcKr4EteqtxSaUwDNiAvgkVZIxUv+SdICif8lL1lKG8E\r\nUrRpEW+vKWJTfQ4orecp2mV/mCssVIZA1+CH3L6VgaB8QZ3ZQ4iqWnt1mxKt\r\n0Zx+DZqIVyljGZ49d9ILpEWSzkyfiTyxN/V6r/yCdX53QaLXfmQE+8Jwutzl\r\n4WyRMYwFBc/dUtqPX2MypeS0OfIdyNIRKqYCd9mx3olN/4+uUY8dStP82AKv\r\nCG1sbJkl4te18Vbyarp0dNMuibI3sF4kKiRAW34kDNJsEsI1NKNfyoPkXiE9\r\nQ+vH+v++cGUlF8PwMuTZdYvP0oONtp04ndHC/lvm/05iDO+t00TRhkc5suVG\r\nReT/LqAxfYE5O7JJ6ypF6cKKrSk0qzsUc14=\r\n=eDn6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.75_1679075836292_0.1382694696864768"},"_hasShrinkwrap":false},"0.4.0-alpha.76":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.76","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.76+5f71dc2b","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.76+5f71dc2b","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"5f71dc2b403f6cb0fc9bb13f35051d377c2d1250","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.76","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-5KXNaK8kaoGuHtMWXtv9jmWS3++GbymA5o/FOA3jr6Jpw9vS/yKwWTqZ0kFdGRHfRX1016M8ek2PAySheLeJXw==","shasum":"21022b6d22930bb69e42e68192772141700951e9","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.76.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMbor5D/AcmFV3+kE3NArvI28Yn2tdQoFS0R8Jgu/jnAiAhRsWJstTW/eMxwRYC2Cbtmw3EeBSn0ugBbizjpnaxWg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFcnzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlRxAAlubUk7Y/9iUcDIUySr3ZczX/OvYw2Me+xk9lt/YGIGgrGWuP\r\n+lRnxOxHULajNbHXYnI+tnEFcIZzHzbIbwYTW9/gUaFH6dLssrDEI5+M6OL1\r\nbkbpEbXhJ/6iqj0bWdvHh6BWMenPV1VXHax+rjaeVaC08nek/MciOKMoN4bI\r\nDBMSHETfwBakV5N/XOOyDEdvoWonV87Kxir5cIHTWF1g1Hp0tQ6xJkjnlcXb\r\n4FP/NjNY7kT/QwNXmh6tywvKcfAePlpGNt0wK0qibepe8kRwEuVbbV4ST6jp\r\nbyk4SebZKwAQjDGss+MfO3vd2Kg0Yt3lAe1ySmBWxFbLyQanK3l7udtB8zoU\r\nTNGhUmcf7YmMO3+Vu8LQcBC9Jil+xzfDylCvjR0xNHsMSjn66wQITkbCB+hd\r\noN00Fe1UOh//zopfWuvJf+PlniY8IJ1p/IM/NjDLM4qWWLobXCeDcVhAuthb\r\nvP/WOIiGcvGcPm6+4vu5GK7GA/JmlhKFYxxkpHqrEyDc0YGd2qjQB4Wb43a+\r\nl1vL3a+jdWH2SDgVUfCDlnH07ruDhvuSnnQRUHvOqp7KAl+W00zIXYjX5SDH\r\n8wGOlBx//kjgHfbwVHi9biX3DEHbWZc2tR1u7+pj1tzuF6W8dj0YecIZXx0w\r\nl3cNs22csbhafRZKBlqQq4TcJDsvQAs/r6o=\r\n=T11d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.76_1679149554829_0.36650216676803526"},"_hasShrinkwrap":false},"0.4.0-alpha.77":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.77","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.77+4a6b99c6","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.77+4a6b99c6","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"4a6b99c617de06edbaf1cb07c8adfa8de9b3ec15","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.77","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-WpfHN9qBuoqgVsifWdKhKDDTV2tOW7lrCxcZyMYA5aymkaDlGrS3OzEGHtkKrcusxbXzr4oKzaeezehPq5iGpQ==","shasum":"8f828bd03e8e9f0e64c894bf4a95b16ba3363290","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.77.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRV/L3JR7v8IIgcGp42m8h/3qpI0EWhJ4guv5ISQOP1gIgU6zq4E7wkCkbxQcuzc+aurQymbDEZaT44N1EeC0Gr/E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFgOfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJWw/9EmLPFZLSKLA6o/0dcUyxI9TYjGgsR155mV34ZX3EOSECQnqS\r\nsR8/ig6HHCKB+/VJ64w3w2UhOXIiSiCKf49GiuTPTjr0QiGvQ8NlZA+8r1sB\r\n7uTviWsVZXmlsC3OTYsM2Nj6Df8vS3rI7JDVY8A3kAPNiKP8cgbFtyGHqBlH\r\nwxCWHQ5JMDPYIVq8HaFs08VTPNcfzA2UyER2lt7qjZW82ls8itRpK6Caqvzg\r\nJ2csk0xhHY84gqWBkTs1/UjRC2WBHZn5NBix17lb+ixtut+UwfSbVJ4Cu9O4\r\nNAnK8dg2XmTdEJcK4+draSItcPOzKGBAmgqm9gLuFuQRypL/ffZZdwhJ8HZ/\r\nhU+VscROQ1wzXiPJsufzFDCw9UprQ6JOjI1QwBHtqAhqWldhkFt6JDau24ZA\r\n+tHRflkA1vbZDvvYQfoHDOBDWs0qquQPWO4W37CL9jujJFYbLlQv9ceoZ7rf\r\nSy8rY+gC4YH48dA0ib0HHTb3s2TvTtN5zmxyPvYRX5EfnQQB7TyOAzAzSteP\r\nDL7LXSaanzN1Iqnf/9RtU9FpLHXLoQWqFtbpj45bk9tg/BXgmkGGK/suzPYd\r\n53cKCtzP+YyI9l0ndWc+U+WcS4UucrayVdzevi9gLcYZvMfCTft6rI20YXXs\r\nmMQTxkwPZ+q49A7eB2SFP4FSqFGYZRAsqaI=\r\n=UciE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.77_1679164318998_0.3667773502294063"},"_hasShrinkwrap":false},"0.4.0-alpha.78":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.78","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.78+2efc0097","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.78+2efc0097","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"2efc0097138585391940fbb2eb504e50df57ec87","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.78","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ZedGVI5IOfnqbBgwjgL6w0aZG2fZEPOyd5A3JfYuguTxodlftSBsWaqsjRJBZSxieZYJKYbLYrruDDWTN53BmQ==","shasum":"59917f8126a6a9dd2ef521fb7f0f82b377bcab87","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.78.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdu5WWezYJedvCb6VuLzKQTmjGB5EvCTSxooSy2jfcowIhAJuC2d7GMqhYPoCYx73lkCieaLtqaGcE+QWzJcHsm1Yr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFisQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEww/+OPq46w3JbTY+60Xi6m8eD71dPScKpkzo8r9VURxQHXbtenh8\r\nD6ZSC1DrUMc1J18VMUPInjJfmX4eZSKvMd/LMTUFFJz3yRX1mKT+8hpVK+ul\r\nICQ3Y2c0PWcTbdA4Oy2YnVpIY1FU7h1a8+oV+nsaJSqlICCDz2VVy8aH7t9E\r\nHHWfZcLxqMIJi7LkuWyn7meRXaeAdvMHKgJEOb7aB0fosplA5WjdlZbVSxS+\r\nCIlucleIc2SEmgGt0C7duMiUKTOJvIsS2IFX84joiHb/bIdoLsLrNKZ9f+9u\r\nO9i2SWlHlvxe3TyW2wIa2+aW4D15pqgZ0hrI+HIh5eyOxOwaLVJ3uWGP9AuT\r\ndxvSsv3Bz9+g4Yc9nmHPaBb2CWPTxV1WcccTh80tzjqfS9LmR0nFxmAvfcgg\r\nJFwuXQ4PhRrIXh6PW4jCZ7TVQSJcJsSyvmY+ZHhEag8jD+nOCorERWuFMwwD\r\noPDywCesXHc4oKFjLMcBSz+YU2RrTavB8Mq6ry4pvZ+ihCGY8F7i22kew9YR\r\nh0FnPGswyFd3jtmq/O9DJRLdpUx7Eucc91QrHQUTSLC9GzN+Kt1F0r3XAv1W\r\n2SQ0242HAwqKeQ7Z3IXJI6cpqvW+fqqHTraFAhVeC6+VDGT2t54XLNKKhRNN\r\nw3h9ElbTo5uLZWzCtVZYBubl1EXVsd6430c=\r\n=2/LT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.78_1679174416302_0.13762738006642494"},"_hasShrinkwrap":false},"0.4.0-alpha.79":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.79","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.79+55599968","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.79+55599968","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"555999686a831e6988564fd5c9c937fc1023f567","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.79","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-gW3I/9psYmcyKt96yGmgfuWocEn6kFZ6vBdlkibbG8MgTZoW0TtuFZONu9fwzP+crThMBAheGLuzPAxnrOngag==","shasum":"1d82aaf8a6e3db2ca774ac14b1aa72c9e70c6aaf","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.79.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/0oKXwqBXYLKduTwmwEo/Di0yHFj+0HgpqNPzbnEkRQIgbXfv47raRxpdonrx/u3BlTJ2FdLqRmPgV/zsNwFklh0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFz55ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJYA/+PPRdtC2TthGb4F3s6B7hHlDx7awGGtEoWW75wuNrKk91BJhl\r\nJcWVd7W4rREM8czOvTkfKx51ExsF5bswwLLjlwU/0GAMvRWtofK8RI3dB7nC\r\nVSmAflR0OJQbyYgyqsxTSJdYt+amJWjEubmoBEzrgmex4QpgF6nqTlF8EQG6\r\ntUHbaj5er4o5OUsoTUc9ngofO9SOVru7vQ1DwiVr2thNQ8jN59HQKOEZZ4KE\r\nW1X7RfgVrRlSxkD0VIMziq3c0Dr/zCE4VEZr/BYpE6TyCPRUy9wPOOiWMafQ\r\nrvx5LEHoEpkpGhIROE7ipLAUMvS4g3s67QAx6UYIfSxQvTJ/Gq91zEHUGeMn\r\ns3zO3nTIHWKYZP2R1fFKSWDOg6L5/hpRLS9yd+CpZwlFzQabOn/FQhXfEV4d\r\nrbMSMXWaaAvQPG0hzw7fP3YP6u4mXzJeqjAbxscehqMrWvSSVFasizKH70EQ\r\n8j9ZkY6xgxQ1sjUpAWVxy5ObZYKcjC0dK8Xrp+EFtuEI9QRhk1tKKAf+fRD8\r\nAffVrdJ2D0a7QppnXs3LCnk6J+8jTVzsBhuwUggZmLsKuNk09q3jliZ5oIxq\r\nKB20BzE13oZ6/QZoILKowgdLs+IXNMQwaoGz8LWjQWeFef9hrEqo6mOtlKMu\r\niZPYHt5R8RcijEEgtx8De62WeSCzkcvnjLw=\r\n=D2V+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.79_1679244921312_0.08161647303736252"},"_hasShrinkwrap":false},"0.4.0-alpha.80":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.80","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.80+343ce6a2","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.80+343ce6a2","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"343ce6a264482806c640fa88ce84cf0ff69f97b2","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.80","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-IO6Zn0tkNB+JtFs2H5QUGLKn61ySOi9UG+iv38g2e86ocXKrOQbTfRyUdLiE71bSbvKo6BfQeh4MSnkcdTDJ6A==","shasum":"76007c206974ffe9866ab5527b9a38903cf6b0df","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.80.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSFUeco1m4/BL5vQo6K+aE6Y9gSJ5SoCR54TLf+ZnGZAIhAOlFkmaCH4vK06DkrZGALxDJByESg0iGMvVfO8ao2iAf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF1YMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqt+A/+KzgNxkLcPV8fqUItFRguwJmBYSHb6YyGy16zJO0tOCpanwpp\r\nTnkBYDP5gynSygrXf0cNGD2elzXAAJR2QiMkqFmMqXSve4fDMdaPy7K4bOqs\r\nAoxNk7RSjkTYOc25wh006WEIjQ7W3p1mh2OFBmF5mZETnIXOtRR49FJvvwmg\r\nR45iNXmc0ZCr1bQQBSqzbGOE5DMEHyfBJtyobUPZT2MCvsJLIZGArpctRhl4\r\npuXcO8JXkfzgYIUdrd5JjUr37Ya4gLdUkb8nx6iV2uZda7PsD9cA1WLb2JqA\r\n5gndqVSG5ySGQtt4uGj/Q6qS8w2NNMggoZyoxcTK6+FY4V3LGKqwdHgDECl+\r\n2X+lTKFmu40koQAhisYLINE8AIiXTTAqA+cVNjXd5vQrNiZ0NKUs+QbA4ljL\r\nvx0R+0PhdbL+itW3AvLIBxgwZJqAR4PbQkh5/1UuyErLQogJ0GrOXobNc8AX\r\ntCncvGX17x6Yw096RuV6AGj5E78TyWU++NfwCcOs8M134guCQtHkGycWPVES\r\nM5DSR6UeVhqPfEmIy2zGgcbSFK5coft4XG+kVl8e9wKgElGRwc9uC9IBxxN1\r\nCe2sRmDnpfisyiik/00dg4smlc/Vm9MbwK/MzOjSC3Y5i5ZTtoVaS3E+fSjF\r\nLmOD8ZYZBR9TZqMfl7BHg6m4LBTdjfAuDRE=\r\n=ZFrQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.80_1679250956066_0.6563053981993725"},"_hasShrinkwrap":false},"0.4.0-alpha.81":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.81","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.81+dbfebb47","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.81+dbfebb47","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"dbfebb4720da731dbe11efdccdd061d1da3d1323","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.81","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-t4zHUXFnnGWkVGONXAR43aO0wnmQaU3hMDAMFI3lJCZ1pie1h25zMXHPVqnLwyX2FMqoecRicZHv7u7aUEkANg==","shasum":"63d084e2c70506179a2511fb0e6ad4bf1c50e952","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.81.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwevBtl8XrjzdgrhMhNzNdJ5q3juMHzBG59amStrHKcwIgJuuOUnEuAfWF4AZRZx01f9+O2tUi9cf1k9f+re3k3Zc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGJ9IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrpjw//bdOnxyAKkUfTndDaXZtCNHEDYsrgNVC3TStxr8G1B1dsqkPj\r\nas5Hsr9eu7fjrlEmqKGYgRcEXkvpaPvLcapI4uHAkKPOUcEFKcMdOzgTrFmR\r\nF8G57QDgWY8GiOBeezK5CP/Ej3kXrmGsgInTZ9ruBMnHQOLB+AxcVPmnvVxs\r\nD73dxIgTKUbbfivqvNVOcTypbyC/I8mpmS1QnlmDcf0Y/Dn5IS6vIgpw2YRv\r\nHJAU66kUXOa5GSWtWFX+bjkQy3KUKF1NXYVsmFBzB0tpKyZluYEUGLbP1nVW\r\n76AKZvOBQV05kPBC1X/Si6sY8l9n/KtxYujBcfEhzfkb4eoitNbsJDy7X8XQ\r\nd30IgCXAzMF3v5lMbSIBoJM0MeHUFtqR6hg1KLF18l8Rfy/YIDOgYDTVJeYN\r\njcqe0C1pRvzVJJLIzZfgEpw1wDTaUyRUUxB31rp2IaVMi3nYxl3fYR9BW/IN\r\nCi8Iq/7y7h2bEYsHZlDAfLkHIGeQm8AroMKZrsYluJfhYDzOLSkouh3TQqnw\r\nz26ktF6dF69H9AqOUiFfMzm1Gqgglfl3bnn9Ieu13YZY5kkmupafmrlYd+NN\r\nRQkudPyfy1ondletCeXhAcFlU3jvnLPIq0AHVjPhbgCh+3icNxnzZT1eFXxQ\r\n87H1HFkf73M15OYbwnddvoOb1Y7cbfZfDCs=\r\n=qsZe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.81_1679335240527_0.16926565172528818"},"_hasShrinkwrap":false},"0.4.0-alpha.82":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.82","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.82+1125e819","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.82+1125e819","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"1125e81962ffa752bf40fa8f7f4226e186f22013","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.82","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-0pzI2D3ElxNeVpCnSjwU5YTYUT/YxjOk/cCJoPWieJ2oScckGWdfM5YMnYR9Qz4riiAITS0QuUnI2Hr7VzfZHg==","shasum":"90a7124b3686bfd174a92a308de1220c37c901fd","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.82.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYIo7ZlCv9brcwI0DyKyIZMqHOh6Z543kFE5p7xtNgiAiEAwMFhQxbmYG9+W5qzyReu7yemxwLy/yIuonctOFYNEWc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGQmUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRHA//WVC1GrSZ1QYnsnM0CAFcSNEY639SUyBzzHF6mpGw4LCsJlf4\r\nCw4l01vUc3xQu+yt+UuHHHWwFNcBtaSron0OdVAGyoQhjUtDiJFSjB7Mnvve\r\nv7XVWLZ42iBTMdqWy9xgQsX7QYe8AH1OcBHcnjpwn3G4atVlTACC8QPKcaqf\r\nWCM5/Awd6FnRd41HXChVeZ6AI0Gdpgz9fIrv72UAxNZ9LeIOKEB8NC1ahQf1\r\nrN1ooOf58zZhejSOmCbHfO4tIqLKrmLFtnbBeP2N6P1Wv41nro7yBH8vs9S8\r\nJn4jA/1LrOaGPPr4xd5eTJ9h16pTWnL7G/6ekqrCPZ//F8JIoLIuoHRIxrit\r\nYyjX/b71mnYZN+f3zBWduB3dNaR/nWabXvSZv8VcuLYMZAW8ifqu+U713qr4\r\n8eW7+LrxaLfoR7hmDJDV8e88XX8N9WDsYVjMb2zfvb9EQAbKzgUekFqOnEkd\r\nwXrlFrh57Ri8WS1bL0R5AvBNORCzIcUEtoJ90czUtX2URzOZLMTvIPZuiHwi\r\neDxezg/sTZbAChYxwxiUbupAZtO4jUFnuljTIXa2eMgEbw86rH13k5MCWO0/\r\no71A7frDrP8yUtm3Z0YnAnvH0Ovl5q/e/u+yGHLONYHEPQhB5ubYbYv+a61H\r\nlgVxCaZ4Heqx5LyCmjQuvmFDGTP42GNxpMU=\r\n=vj+X\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.82_1679362452551_0.29992226163276214"},"_hasShrinkwrap":false},"0.4.0-alpha.83":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.83","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.83+9f0f8f21","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.83+9f0f8f21","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"9f0f8f21e7436c0a422d8c3a42a4cb601bcf7c77","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.83","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-8Upxcp1lsdi8t2jq7FWE7rDxMH/bNcKDLdQPSnOcIbYb7XAZBKoMrhCsXDhFcXgCccNU/1Escw200FK4g0qUAw==","shasum":"03a10199920ec698a60e7f0d81d0a6968aeefb78","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.83.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaCZoYdWafcUGFbV1oh8f3aa6m4oozxUxbcs+pJlfO5AIgcOvh+Sbr7DtptI30C46BYddXkg8q5aDw7vX2U0xtgBs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGcMIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolNw/6A20EyEQcnjZeBQ4sVIZ0stMCGMyaX7m3mFNklc9Yg33jEN8O\r\nQQJYLwS0MowoodKlCJ5zC8VTqwdrhHkU6UweWoLDIvk/MuzoL8Jyl9c0FA9b\r\nbgQ/nv/5hbZXFBpTNthsaBm/h/HCtXjKgZl6w8RrWO3kyH7VyVK2XT0KtnAK\r\n8WifTv8HFQ6kXsHAQ9N+A2NvssVqZEAQK1/aruSwXf70KAmhfuLaobh3xX3f\r\ntt4SSHVu0sqO0N6FxKzIgc/+9eB+ol4vQKPyhTGzdLW5T5trd381OK8iVyEN\r\nUF8RS6Ug5zWTr6zJQbi+Oa1otB9p8Un+98qItKFOLetdjX1ktmIzNA2LyqXQ\r\nJCTpwQCzcQkp5HQ/sm0RCtYnIgfB8z8O1KYo0BFkYwToMhmj9OEF18pkLvEr\r\na/IYT+Iij50reFV/AGilaw6qLlo5uuJYOzfzavwXR0iPX8IiVNOuA1EKu4tP\r\nIkoxNzcgFn1VQvvGI/1EMkyv9AdUd3g0+C9/fcq0pURS7zOKHP+5PhaOv3Og\r\nfANX35ULzgHwDkAyThL5h4qhZZPjiUJL5UrSBQXVgvJ3qSqAqVJBsRwtvZGz\r\nA67pBQOhDeuPgogb+EhIHrX42Gr/tOEsUTslds+R9j6ut3dAWdKC6uK1sb/X\r\n2sg1SR8Mh8dkEgs6kkzmObgjJr+OpjaZt+Q=\r\n=7yat\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.83_1679409928696_0.8943821736861857"},"_hasShrinkwrap":false},"0.4.0-alpha.84":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.84","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.84+d6e2ea21","@sphereon/openid4vci-client":"^0.3.6"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.84+d6e2ea21","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"d6e2ea2194a4860265fe299ef8ee4cb4799ab1a6","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.84","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-RsHRHlubtu+EI1vUQg294SmkDVvZerPxAXU8R7/7lbi4wr+aw+PMDaRRvtJYB4LhQFwdi6PkPXHIwm5a0JcVjg==","shasum":"e50ed6adbbe9416a2073c569cb559435e3ddb9df","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.84.tgz","fileCount":15,"unpackedSize":38566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFdn21xou6uO8M7BSMxOrF4ijBcbpsQcBoCivNiwnU7rAiBLSzjMxEzcUvbmP1hRuMBMxl2sQLQCQCeaRiEaBWw5AA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGeUOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCEw//WPzJKUWPMYRUea09Rm+ZH66xH3p7sKnWxfLxKeONqczt2PN0\r\n251PhWFOhRtTdTyWB42Ht9KhQLgFWHgUdPYugCYZFcsAR5x3+h33y4UDg2HZ\r\nyoJuRg7ffl+TuaTRjTJc7sbVxaIhCKJ/gLZPtszHqH/BBFY2vA8nONzDay29\r\n8eJ3aEQLEDvT5PpqAaIJ5RHtrm1puOPVk4HE4I4rxkNm/dni157sIhQUOBdq\r\nfXqnajgd4ZHm7YkBQviTliktGPUpihHKSy93ha5uiZcW8jQjNPmAm2bqnm6v\r\nJhdWNJ2wzwK942NjUpShDVkACxva0boA2Num4er5p0ddVnhIcWd/p5Js512m\r\nq9pKmz6Vi1gXkrOIjOFZJ3gjFXzCqO21SokzukYO33v44t6qgAEfxhC9SAXy\r\nzxrC7mn1uMp6++3EZnK+UEe8PE+uDFihiLivvqzmmJooidlZktPg1n0OnSjL\r\nILLy1gfkgh/HvSheg4Tv7P2KC7NdgZ46c+R9//RSpnjhOpt/ixOZQurNCV8h\r\n1mFaE8ZNC3fRx9TYDaq4CpCAVXOupYUWxTIrpJXfSYkjnyTr5xI3Owu2fLRK\r\nNU13pWRTg9NIpE5VEH4Vg9BD/AqDKibLipV4f9JgKAB1+xRbDV+S+DTZcI+K\r\nUjnZKtCXH1kwD6V2iLdIYC39lNer2qrAeck=\r\n=HmpG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.84_1679418638169_0.2857049293357874"},"_hasShrinkwrap":false},"0.4.0-alpha.85":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.85","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.85+996c08f8","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.85+996c08f8","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"996c08f8e32e58605408f5ed5b6d8116cea3b00c","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.85","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-8HlGHKX/dz5Z0ilHL/So4AlSXJ/cx3sRMgypoQO6yEW+hnK/YZGtGNbM6Y7/NiCvGJgl1biYPQ85XpziVnE0+w==","shasum":"41d924fba75d7d6eb95815dc23b9cc19e55ce18b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.85.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAXwjyejy3fcklnHshdHIUPwT7M4n0USQ5+zK8OPbap7AiBYcbbg2o3iSP5iURZ1hgD8CBBp014EzN9OoB2DNWQptA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG0OUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ2BAAmmWz1eMNgNYUSrv9p5vS+MIWZWXinFqmKHNJDFpqtg4vK67+\r\n7hS5T2ZXT4aKrM5HvygDhGLcRxJ36GFOVS/x3zDBIRl3lb3ugtMX1GnC/ktE\r\n6V1OGubjTk1TnlZmbCcK2pjgS063sxelfHk94EYEt0LdglaSXOvZLOzdHrbm\r\nHLekJtELpxEG1A06PY+UYFiG0fpOkscgr1kVi3s5iw2lrdOpMMdcXYLDkITS\r\nTN0MXU3Hg5Z/U1nMG5vvXaLU4y+PWxwXdne+yMces1YS6fKJr0TkbczNyNPi\r\nKIc6DqDSErfCkpPAEDbowrPMwNL4kxjdXx62CHhT38buw1n06OLikc0mcBSZ\r\n4Dw8LvZGTpi00BpyQH9rizMZCi1uvhyepmS/cqnkl09ozCt4GwLC2CqrA0HS\r\nS+KEjCnG79FAk/WW81MA7U9Ny1JrHdBrORotuN9hmZP7uvLfBQG52UrX5uhp\r\nXj2cBhhEO78ey0KQcj1Fclmkm7SuOJ5Y1a216PLZItaAZhOvkPxl4l8npLTb\r\nuPbjdYIJdpqLZUP0x/ByH2LaGs9c5Hc05ACzVUUdCrg4yPQK2ko1ijxdWSkP\r\n42k2GP2LYHVJOTa+9xP5TTySfAyQEgrgSd/e/W81YXw1ADu2kb3FsqYM6ArI\r\nizqMz7+/PyWlp4PJ0Rb72Rq2m66DwD+yfu4=\r\n=DsRl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.85_1679508372310_0.3910120510117028"},"_hasShrinkwrap":false},"0.4.0-alpha.86":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.86","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.86+50e877d3","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.86+50e877d3","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"50e877d3a3b93f5fc3ce1d389b42b8d348dd1e10","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.86","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-sgUMK9fOJu8XXBCsjHq/1SQPuE7id3VurgN4415EpezBMf0szgwvhYILz5v+sPwjWNfisli53YmuYdcQt1XWvw==","shasum":"28166ef56a66764b657d74dc419587d2f4bed967","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.86.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVf5drpzgwZkiPhaCWdFi6Gk2hJJh+6IhH5hdWyk7EQQIgTaPYMnxnD7Ot8dMYAauq2gAfYytqUsi/I0li8lJd/bE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIWMkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrekw//S4sEwRVL6j1gQxhDFtz75idctTpKPkinu/Zlj2LTI4NgYRri\r\nOcdOb6IHiMebCZphUHokPqdf+MA82GcK8reuQ0iyP9XxyMoFSWl9jBOi27ZL\r\n8B2pXqhUvfQZnJUQBMJ79ZWFZ7Qz32dVvBTK+spESd4CQDW6bm5T4+D7WOu3\r\nmmVy7lzil/9VFgLj+lz2iPA/Ue5AoBnBZU396rBPiXsSgNqcZo2wBKt1yAOc\r\nixGAclHRqZqwJKZBKWLpQ9zrQ+iCaKDQiCO1RMEUlqfyM2IhMnrH66mhDQx5\r\nxcw4eFYGtopuinyucMRKOSty+eNQyesNJtwsVl+lU5gnrgqJo1TdQgOn4WGo\r\n8+oGB4P2L4qTlKda5QD9U4xiTx7LK4mDgPNInBFEnsDorTxkd7C9nRoWu2B9\r\nO4ytaQMMlqctsqHx2sgZQRmp83doleMlZCEu79kfQ80HPS5D/3h90RC0EzId\r\n8U3pGPuPYz0n7xmWMgHmTTe2bdSr9pJk34lcVlsV1Znd4s6EftW75SUFlQxD\r\n+nnJIZGeGzDYJc58ISJbkM1JCoFBJkmyFBD/zFkQhx8xdljB5E2qVYTcKZh/\r\nNz10LBKAP2zEJfhSITHoN6gDi+UPMAgIU38TnyzMTYC5I6jkx5esYz7S9Hda\r\n7Qj0bQDTogXigNkO3TPCIgFpYyESg7Av/ug=\r\n=j/wn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.86_1679909668738_0.3849144174522663"},"_hasShrinkwrap":false},"0.4.0-alpha.87":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.87","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.87+74595099","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.87+74595099","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"745950995fcc9ace7fc8e97839e9ad5a2afb5385","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.87","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-4ojBw/6+AQrL4N0D0528orTmN4rGHktzITbC9vL8lb1od0GdYHhlQKD7gsDUeSqbpKgq5HFm9YOAOUQ+RAT+Gg==","shasum":"780dc6530151575dfc4938439351320a78d0940a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.87.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAY7Nx4ly6vMDJ3mxBduPCocUwjJASLf5FVrf1nbc0cCAiAjzCPX25zdLynOQqw3SzDexqvcKQTvCLslqy+FqkHSvw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIv6gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMkw/+Ijmscn8dve2SsWknUFeHUH9H/suo91sJRczZkKJgQQVMejwj\r\nmglmb1iNxkpjEc4XL5BJ5cV3mKPrqGifBMIj9A6Gp40N9MGPPexNb1xyCXeK\r\nXa+7TJbRCwwPVUBCNV3W5T+Mxk/0yZ5IMtrc2kpN1tn0Gy1nn7k1m5wbMIbx\r\nHKYgzIv6VM2ifteC5SHc2Y89rXyKqY5UKbfTBupyC6FeSCnyXH5r6BLulz+W\r\nTH6K25tA9l86CiUpY6DW+7fMBaIsKbgBC/qG0wuhSF0gyTEZVo0D5L5BhYYp\r\nchNDNhMoT3c7SwMYzbSPubsAhjskH/bupf/YlMBPA3uHdVS0mXRhTuOck9w1\r\nJ+QylmHi2EzFFJZb5U2ZA3ttOQW9X41tpdrFGRANfU9nO2vYfyFI+/lFDGE0\r\ne2enbtvM8ODj4twmYqVyme1vpPmS8xi09sj+V4NtPMlblNGmbzVzdhvXln/Z\r\nM6u8YgeECS/yjb3t+75RQZqqgH/XMnrQy3WvchORP4V+WuVcB9jnEtzhdkMo\r\nQjZg/FhYBAavmHYKHHkzP5xz3HcCfoFzp7I+c3C4mWZq9yXQ+I3619rZvneI\r\n5VFvOPgLVOznUx+R6eaX4kQtnTwormnb49x70TfNC+lT9ey26/ncGd7UGoG5\r\nGEK5/RAMcnILyWEdDqLxYM0JX9byP5P4sqM=\r\n=rbhZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.87_1680015008273_0.27280040664329963"},"_hasShrinkwrap":false},"0.4.0-alpha.88":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.88","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.88+3bff26d7","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.88+3bff26d7","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"3bff26d703f4661fb612783aedcaf5c9d92c2a37","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.88","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Jz3q2QaP8NLm3MfNb2tnrWozI4yV1Bua/8elqW43Q8oHKnNphCHkJBEk/Y7oxcrKbOpsi/4wSCgQXwf57f6pgQ==","shasum":"7a78126e15dceb8d0fb9704f86ae969005ed51c1","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.88.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGA0mucrnkuDZUo9oupKnCkotV9rVFzl58cyxLb6dasHAiB8NtvVGKgALQ6foGn8fBG06pD4O0YcNNDaeuBz0uz2ow=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJHqsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCxQ/9GE/m1eOlPgNFy6NhzJSKo6i1l4UEqJuQOzT0nIiEkg4PEdeb\r\nW0xp2i2ke6O6R8iZyIzRcAJtJWAFZ/g+yvhnqUNFmu4SMQpxebRhfYFeFk5l\r\nhApGoNBAPGPBmy8NGBdAighG1r7UIrLlXvosLsnl7aGkmnXRu3RcPs90XSdP\r\nItBkqMg13IPocby2gdwd+qveYUZH8D6QdDXkGNYa/i9z/SLrb9E8hzWctQLd\r\nRKMlKCGm4Iz3ddYv6NG9seD38KjfeKL9irMrG5CckWxVxexUx7zJkRvXMrhY\r\nDyQnwsBUWfls/nJtiPt1U8zA5u7UgTGrimxSKrkqSZ+5ba4HqsVXTaiHihba\r\nCn2MC8SO9ZuaHSLSu2PHsSf+drZXQeGTqvmhKMHFOXSirQIYqLsW4T8jrj7G\r\nbS6+An/Pw5q01GO8BfBOujB2s1Z4pRaiaFBJDh+iakrsTcgPTDNoGkke6I7L\r\nOSyj4b53Urwh/ZK3TCi2bJ3tvO2mX4nYR+RqTl3zbT5r4XEQCKXkjlPV4DQv\r\nCIxsM/1WfBCyHcIbkTHBZ+J82lihYtfCtQe8oJNNUAsYy3xEA9+V9Kye0VuY\r\nl5iDr9bxgxqlCXj0qOCchDrL1dLE6zcQfpp0iSCJueg7krCLJJumiMNYO9Tc\r\nEuR1z46o4+8tmf8pJEnWi1++9kg1YibT9bQ=\r\n=IYO8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.88_1680112300664_0.37099816886706716"},"_hasShrinkwrap":false},"0.4.0-alpha.89":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.89","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.89+bc5455f7","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.89+bc5455f7","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"bc5455f7b42612a2b85e504bc6ddd36283a42bfa","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.89","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-caMYOgXP7C/32U85SRuMDUawbElCg778jPo4ZlzOGcxUeaX19qAXRJv8AHuUBaSBiqKit+2Wmex8M8z5S6naBQ==","shasum":"68f0f603a2b48f9e2ae7291d2be0a238102d28f8","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.89.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTsXQ3h74PGCADg7LoE+c2/Ai5ddj1SgVOhTyd66Oi9QIhAKg1lf+YDCWx+RHuYVH2rBj/Q8yBw+OMmiEMXkiZhvkA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJJwZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQzBAAh6vokizVRWPdnWt6MOMeqEdCAnYlPJO/VyvTA5RYrQzwTScD\r\np2hkAyC7NCdmKo3IvqBrlK5vRn6ldI2k1sWZLAQgE4I/U3jhlRMTBku9OOTf\r\nGFeHf6lwinccqBDkFscVZgy2tuBy7uirD9UP9WoL1voNFzQ2WrybIc85b4z+\r\nbv6dcpcs6swDJLgg9gSIoEHYspXbyUt12pSfgq5DoOUlZ/rK0qd3LR4fDLJc\r\nUgSEmCMjbymyDFX3AEUnABDAjASixhClyRJi0RYc4EIV4k45A6h/SGQlz4Ui\r\n4IcQULwewltqWya15gvkFDRfeqPZ1OtDJ5VuEixGr5CRzv+mBw9+ZlRcdrvN\r\nrF7p0U8o82YNlunVKGGNJIzFiNZTBx8gKaCauJ8vQkt6aTo9GdBPUiAWTj6x\r\ntnn/jzxy2b4WP/1F8z7PHnyiuW9xl2xmb/PpcpTCGVsaEo3aN+ce18fAuJkH\r\ndVXdNdDntSCXQnWdfh2xi7lCVFqCEbJClovNbif2RBNPYQeoe8XA57r6AXO3\r\n+z21muFwA7h5ux6fnZ97ciXrFjyKzoEVEGGktVMNMnefcGmULx0yPYdtFLdC\r\ncYp4vDDr1yOSHRPwk+tRFxnqXBST7e8bUN7UEhZ7dyLkroHvrxe5v5486PZZ\r\nAifB3+zryBGeZBiP5K676BQqLkeP6aOxero=\r\n=ExBL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.89_1680120857311_0.08923738332663"},"_hasShrinkwrap":false},"0.4.0-alpha.90":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.90","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.90+692defa4","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.90+692defa4","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"692defa45ffcb4f36b0fa36970c4dc27aa75317c","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.90","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-aDfhV+XOx+IP4SNFW+v2N1m2vesr12ZZuY3tqiKRycYlzIB+j+SVxaW6n16crKKsADk+aWpTrJyRxUuhpPkOQw==","shasum":"e307dd97ec967b322dbc85283cd92c3d1ed60ae7","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.90.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZbMKfhAWT/vzFI0dDpGTq89k/hItvNW9N/WZtDFljvgIgYvERNB2tcQrxtrMq0EU/AStzRy1qtZigWyT+x0x+poc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJKR6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJnQ//YUBfryWMzIBbVMcAvyorU7YRsca2a4YA9YRm/EGN7GqSFpTx\r\n9ht6BrJkzpMlDuy+y1OgQSulGudaPCRpVCU5meWO7iVu6gbLjiRIs5y3gWbK\r\nXFsxZgH7bmo/glBCFsAr5hl29IscdADo351XUU0se5YLIrogKjvdSAGlqa7g\r\nRMG+vsihmJJHaH42hZb2ez9F1FD+9oosKpVnQnUx/ZcHYyiFp2bGEkgOFxwb\r\nYPtr3+FYbi9UPBBw62KzZp7oulGmGBT59Bb3d0jZwDRALiiftCiWmRveLqe1\r\n9lD5zlbd3W4LBcLGOGAjjEgc3RIeIIc2hjsGXHRGqjNBqeQPXHa/40SppKs+\r\nrr1YMb0i9DwpNXdXzj7nL6ZzPtIT306rJIkqVE1U8XfuVY50zYnAdWLZYJA1\r\n37wE9uvVyZxfwroTxpHxuz879BfwzRqm6d5rrU9QJq+1lCpL1gb8KGOe0+Ep\r\nsXC/ccLVuGzZOUimYc99UZOVK0qvdu/x41w/RKc7AfxwVMmv1bireoGwlJe5\r\nRnsE4Pswk9vnfoISkvEy9m3iD27lp7UG6I5KgkfGgqvOLFa+um1ExFYFZCWM\r\nwsd+qZglLzPwRpysuvj96AIF2N48W8qsMzBxuvsn6eQz2YJELNwd+G5cqA3E\r\nAos593/JYUFZXBoZmMhl1VmzgkNjQWsqaS8=\r\n=l5oD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.90_1680123002143_0.04448876454725026"},"_hasShrinkwrap":false},"0.4.0-alpha.91":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.91","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.91+ef00099b","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.91+ef00099b","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"ef00099bbca78cda92dba8b446fa68539634ad96","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.91","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-PqHkSn4GSPERrUiKyLfHxC3eIN+p8WqhnVBP+GWX7+9RERi/a+Z+09nSzsLiZlpn/U+GYCxS3awlZMzPkox2xQ==","shasum":"d341f1c8f9e63923f1ce5157b55fc2df8bfc3401","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.91.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/PcenOxVx684/u4qcRA91QguhqFcks0vnCXJZ6aIA8AiEAgnkkLgPt8OmJYz9N2Vo1MsVh8GS4GJX8+/lRcTFLWis="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJbm4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoG9w/9FZwLDEaEvf7O1c/VjLT6LH5pod5Kduqe0Z0tXn5FShEdqozB\r\nYlhEvtZsOBiT7FQGbO0mtJBYGgIDnfDiInmoNPsnilVJ76lgIuHPIGYy5kAU\r\n1hHz7/6iwvHjwFh4d+ENbABoRwSisFGeBdHc1DVzT321zb92AvpZPaDzntFm\r\n6qyWlIdMumUStwIJPMHcmU4FXFKDtml1tY6xEKG3k2Y5OVj1c/iR+l5Tg87L\r\n/37SilVSPSezC+myS/6U6hZA6+jwlAaaaHd2OZNhdcu5JSvEH+0XT7Rj5qlD\r\nukKv/q8GMlgyCNiYoXLm64wNE2KdN6n6r1PQrGnJ/pUfKTdmI2umH8vl4Rih\r\np1LvsVgtF0AwbqHW+VVT5BfuvC75zqRoVybR3x1ZO9LIbe+Gng+7DHz6z0k1\r\nwl8T57/HnJSmyNSIegVX9hXNCAQECZF5BL8enjVqEgras8GKCv5KfK1dwy9C\r\ne7iNBmWji2tG+Q5a1h2NZqlkNraRUKAvd80ZuuV7fV/mzGHMbvaLo4ahUNYU\r\nkzAp9Vd6gp1Mha34c3BqzAj5KA848B96ApNQOvNQg9cChBXOpmfqUyAUiorB\r\nt00r4DjwUSsAYLJQuJTpZp8oJCgfPeFLuE2oPIRny9nGTmEBDIP5YGZysbnQ\r\ngycDmHHE94A+KrDkRql1YMGXa27ccVPRvV4=\r\n=mROg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.91_1680193976553_0.7237064601313996"},"_hasShrinkwrap":false},"0.4.0-alpha.92":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.92","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.92+47636b4a","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.92+47636b4a","nock":"^13.3.0","rimraf":"^4.0.7","typescript":"~4.9.4"},"gitHead":"47636b4a08ffbfa9a3f2a5a3c5aebda44f7d16c8","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.92","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-+M7Qd2g7sGdNUPPNgiWgELogWSI4Vyz+4frchVa3554lnkOlsfGH5Oex83PQO32NHC9gm4P4z6BD25wkwGGp/w==","shasum":"470d00ea54d2ef55d782138afd24d80f0c397b1a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.92.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICxL7/KzBsGYGAqjKmKoTgNQ4jY+zfyzGAN2pG0WnqGvAiEA4Zh1uEfG+MDc2ZjIFvYXboTF4UJfDOXhoNsRpXxEsWM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJeH+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2YA/+IFMbMDjI1t5IuV+vGiPF9X7smNV1rxLL5MPMjtfMivD+7/VJ\r\nPhhSmEU162xcgAR20zs7BRjdgtj2/qbDJOdXvvUDp9NvzQcAV1w/rdFXqYyi\r\nvSMQ6XMP91RLGWkXQ96mL/Ku1AR+USrq3rBvWAeTZh698PYCBwpIc+X0Aq4O\r\nY58v7edHq2G2juLivfgSZUXDpe1qZkEqqJLXJYOQ7SGbDDRBFU6sQGJWQtnh\r\n+uBENT6SACZZVDKWvlChokIJ4xZa3LYvCJmgdTz2RAynNziX05PQ3rtELwLn\r\nvz5PTj4QLgbJlh93qCcsVhCVPii7o04RV38+v4HYMN3CS1XRkxDnYHaMAmiJ\r\nQ94bZWIOx7VXmSd/YO5eTBR/HdRZdlWTykB8CfvCJAuag32QvaM63OVwr2Ve\r\nDgiBspeFhrVft7Wf08Fh9TXIHHne5zhxNDZATU5vxYmA9An8jVWciNq9NPLL\r\n0SGAhtK9zkSSvdB/3jT9FoLXD9/i+xLc/sonaxyM3IBa+wfI83OuiFcDAmnm\r\nQgRzTjgCiHAwJyNJ98iHfO1sS20feofDU5gOShD8HI9M4S9/koqkMScftdvE\r\n5rsqwvFNm2nsaQmiiNEDUIDL1JnPXVjC3ef+rfeC/AP2ez0MlH1EtHCSuP8I\r\nthzCAytHbmkop8IurfECCqIcXWNG1aQA8rQ=\r\n=UFmu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.92_1680204286599_0.8234122019836303"},"_hasShrinkwrap":false},"0.4.0-alpha.93":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.93","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.93+95582560","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.93+95582560","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"95582560cc071e088e4b23d962a13dfcd93e308f","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.93","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-iXeUC+ZRkpGKihmxbmFzLFVapCOkgcRSJWvddXB2Jx2iub8Ebn/fcDejqC/Dyd3d7pMd0q9yFiaxTdwAKZzIdQ==","shasum":"3a2834dcf391ee3dd4dd28be4ff64c5f81413fc3","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.93.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8zYcwOW33JNLsU/l2LBX+zQYsboKtb/tFi7vUQAmxmAiEA5zaeNeEEay9EV6ViVf6r1tJtsMCfaq094Xs0xRQIjI0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJuuuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqAw//bDdDieIeA1c0EWFYGDfpggJmw47qtVYDUTqCygVXPAMlsPiy\r\nENd+45vxzGNLOtMxiT86LPFlqU2vb430Zkbl6BbFIyvOdQ1Ieeg7eQABe8bl\r\nnDlxNQ9aQ1/0MfO8pZMF6vKv7FfD8IEQIE+dLtXzApmiltFdcNWYV0nNd3ui\r\nwM8jKx20Acrz7e2A0tO0dNu5GuLA8d/I0+0WWDuw/F8X5M53ZWXjvzriNAeW\r\nNDNsYJQBz9eH7NfbxTCO81p9xYDkmYKffk+lEin9ikJY2TFjBeaXCpwjbb72\r\ne6o254RRhOqVgM3k4/ivogE/oWDyfJMFl3QzPF+rAaViUzhY6fOOdDgFz/Zm\r\nUjxu04qjjzG0oknDF5KAucfP1FPw6yaaqPrAvdwOUG6FuVgMr/CPuy2twlY1\r\nfmD6SaZPodHbQGgX+tKjj+CMN3GrEeuAyb1J94zMXWwReQ++4BVha3DCDg/y\r\nuBysOz9DI+2K/CTcYhV8+9kWSWI8e2nNSS3WP6YYgdAKGZJ3JIsfPq1fZYHS\r\nDyRYA56ZUrmCA9grzqlQDCIiLNSTUKXm+uC6Dw5eKN/vWPO6plk9nr4+BAd8\r\nPpXdvDiM5AfLU4qnQrqlL64fOGhT+K2b79lvp+WqqzKzqEkQdEG2EkWPRsQL\r\n82muaqAwhPouD76qIMq2I9b4pwNm6C+erfU=\r\n=4by1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.93_1680272302376_0.9944871531348949"},"_hasShrinkwrap":false},"0.4.0-alpha.94":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.94","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.94+806ccd9f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.94+806ccd9f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"806ccd9fd846352bb0d54d4e1392b336d6f12d14","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.94","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-NAK5wE0osJVTxiPyI6LkWmiTAr4MIK4yIloep69u3ux1e9PNlQUbAUC3CjBFyqkLpRiIuhIUjhmZu7w2ZbAcfA==","shasum":"bb41b13818247370f83967be7a27749882ed0db0","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.94.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyFRuuo/TxeDI4m6u2YgbkMP7gpJ/xcMwz1yKbQOBFVwIgDnOYZ0y0NTjIt0JlWuRSm1a0Nst4XWxvg6FekTIBF7A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJv8dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVuA//dfWI3AZBs5jrkz8XDz572OQkHx4vaLkYDsTb0B3Xy6D2f/7T\r\nmtoj/nTa1QdU6egg4n6mddWhHqW9AAgLMj9eJflpW8+u0wB9EAbbHeUVmMIo\r\nlGW/47Qkxux43OlKMdQo2UaIwvx7YWj8gdcCpqj7b38okZm1A5XM+7CMPw0W\r\ncxFJSLgJCptZT+1NN60gwkhEDSKYQdoBtP7/O996qpLL3Ac7vz4k6oaXf8pa\r\nReOglB9bbFkZCgMgXn7CBmnSci8sv1lzfxZS20M7bEI1jjyohOEVKxJoIR/C\r\nJDtsbglbQ0l8bpiedyLASFglSH9p6zDJjshT+nwYssPWBYNp7uSCK7j25F7O\r\n12wmad4YNOs8ajiptlLBmx0Wl91nakqqgDF7WB34GGyV5XKtgfRaswxLBftG\r\n7yzcrrwStxBN25KxCZ8Qg8t8sDChk0gFRDlcLsV68vHd2zxQGETO+/9gmNsV\r\nRly3ZkHCUePMLdSIEUVaXv4xozCb09HRNXRmT1PgX6ALQYFAoWpHIQCMUjUE\r\n+tJSQCX+q1IwjGbpEEnydv+A1wXOsETR/guwJFjM4QMeTwE5BWVuMXJC/zgh\r\nIEGcBCsJ7c1D9iUpI2JTurqiPkp4cZPW7Imq8GeYQjMMBiBL++zzm09b/Zkm\r\nnpsocPQT23NDDjum1DFwipbeP4tll0/WDDQ=\r\n=piih\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.94_1680277276794_0.3254366497089476"},"_hasShrinkwrap":false},"0.4.0-alpha.95":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.95","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.95+fa5b1a83","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.95+fa5b1a83","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"fa5b1a83d5573af4be48dacf9e9de531b7a36bb9","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.95","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-gMRX+iaOZBepLtaXh//8FAzJ82UzQNowzhCFR8XCTJ0aqHTJf7XK6yVPEnJLgR7VW0nDU3gTS/D4VkMVpJTf+A==","shasum":"5836f160bc54a954f0d5c3643e2b1082d7efa4dc","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.95.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDueazigjBalH/y1N2TyG5wZGYvzFc6yHn1jyKhTUnvtgIhAPpGbGzhl070e1cKT9I8NJ29JYtx1GAKi94w2ldo07YV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJxJ9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQzQ//dQGcHynkjjCg8cfK3QAyK+ILYjwi0y38alPu4W+H2U5GfT+M\r\nFB37NzCCTqcUQCWL2J6FkK7oCjUNTu/tpfNDXHBy8bhD8pk6TsAcqpHNa/gr\r\nQcEvZE391NjbhI28/ww0UuAuK7ZHt26CvasES9+U95hFjL2lOmEEL1oNEy8H\r\nUCWIGEJsEXxJtWEjaYmJ/dbehj3NSCtARSoJNsAauvEx+0eKsIYZgmmX+t0Y\r\nXe4mgfal2xOVrnNUO+lhUQu9hSNg5lMxERujWV1WRoABM6ve2nVenvQ0gVx4\r\nkLvbPaPMwJILj933iWemqP2qIcY3olh6tXASk7D6c1u8L4VTwl4EIM4Jwl8Z\r\nx3MIn67krf+hp2Y7WW1CwcUrQLQrYEUm/4wHnrmdWt+IAF9VKO78p30fYIoQ\r\ndsJ4fiYTrWAKDw4CRbk1C5YJ4GZhi3Rk//6FJdL4sWiJm2VScoWtNbLntxVD\r\nC6zTwaQK01LXeZLqanEYCPwzptmOJkNS83AtvaG+iTPpKCu1pHXg7Lz49MtV\r\nBPwN1qQgj/ODtVJ+afasBUp9cpSNlpfjQBIa5/KNiURX1ehQwSvX6iQ7htW2\r\nt8/0UD3p6eKutMlSp0TZDvwShPguMvpj1RBeMbbYb/eK6020nNzDgzyiw3RY\r\nLMmWAtpRmeBpWxOOsbPgqVLWkMbc/Hi6BPo=\r\n=cxjF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.95_1680282237340_0.2678062948072131"},"_hasShrinkwrap":false},"0.4.0-alpha.96":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.96","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.96+a8439db9","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.96+a8439db9","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"a8439db90fd11e014b457db476e8327b6ced6358","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.96","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-MV78+axnLqgSFEBRehbhqaRUwLxNwziXn+KLnl9cED3yzJV6Sj2Qo6n8trX3eJlOomZhIpswLM7eIpjfTWywFA==","shasum":"0a3ec80038ba41cd3fc91a4c2655626c9cf8d1dd","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.96.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHR/nVmNUzlsp+kmj+0k1ztOrfJRDmDB6m3+P608PTPxAiAJ2puIFuLjDBTNZ3YIaeIsAzXA/QkntJ2QSHTMdwK/dA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKDUyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJQg/9GzgzzibMetoL24EFQwyRBbuqnNsg9ykv4zSnkW5X88OGK6z8\r\nuotILfAV1x1MhKlxIEoDtiq6bJRv9KLqRbkrhRQK0fPT58lH2j9msrD7BwSu\r\nTyo8xc7oKBFqmTLthxgyJ2ZpJL9UXVt4BPl0s73o0I1yi3juIy6/6UlaW3ZS\r\nUkJdpjwvr76/gMnGHhMtx5HpPu/EJeddM0bhdnRaXoggCZPsTAXzTXSmnL8K\r\nTcPv7REi2xbMdb3E/L5Iols4EFuh38IzTaaEKCRdTzmvR3iyywfRiqLezdSk\r\n5CO0y8Fn2HScz3AWoAUZG4PufXCtw9hu9xag2pGBBAoI/tNs/muynSgb8ZKj\r\nKRj6Nm2adE4v/nEkCxWqQ5RcGbmBJs/1ydVE2/pT2ehpDxaNU+vm+Mp42mXd\r\nxpbtmZk/hrVP0cD5cpJkDrgYvCBKT6mBOhSjKVAt16wrDwNeIkrOFvJnmQbx\r\ncc5+EyyHg2iXXxBsJFH+Ecljzf+RR4/gvClvhw0SsEJk4LUrmhML34gn0GXs\r\nIA7bZgksENs03Y8APQPgNLt2s7JdfVZPwKbH+JJYSI3sNT0SKKAKG5CQXhtj\r\nu2X5TWCeRtKbVSbpKHWhdhhI635eZ6I57SG40EGinnFmzi5gGDiIa0IMmKiZ\r\nB8ro+mQopdYdiSGT81mAHC9kw9WI6ZZeXgA=\r\n=SbCt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.96_1680356658823_0.3271445266076851"},"_hasShrinkwrap":false},"0.4.0-alpha.98":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.98","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.98+d9cfc7df","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.98+d9cfc7df","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d9cfc7df6679d2008d66070a6c8a818440d066ab","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.98","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Ad8eZRSi5EE+j+2Gb1wTB1yOQ1h07EA05jsGMjn7W+IMhWvyU9jcn43NClceeJlUFIIPoB4ZO/7uyBfgRqK8yw==","shasum":"4f56918929a98b1cb7b60a49540d13444522dcf6","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.98.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFiA/vgqFJiujXTBV/Xh6fsCDMpfVBAI6awCUx7kA7oNAiBeyYe2QoCP5xe9IpTUfUAOhW3MOddRbsNvCuMNmB+H5Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKKT7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyKA/+LAVY+PWDvbPZsSFCJW8ckL/m6szk/mYyR4jbvVplCeZGNap2\r\nt9wRVXp6xieif+j7a58rHBdSaeaWAOYmkplyiTxXAUHHcFoIB1LTdT7m4k/M\r\ncRfSF6wwJ7nkLM2bTTO8aFBhlCjXZMefvzVfVcDmdNM2wdEVB3t2ZO+s+ocV\r\n3oKRm8omTv5bwKioIqr+a5xQyCc5WvTAhC6OorNmWI41p/rtiSbVjTP0woD/\r\nY9DLJ/DcMpSIAEOK02EPCKyBK2N7US/ibyhWjLcefORigqwmkPIWDaJ6mZ6r\r\nb5sDVNKTtkTbjkrflm46j/4ER3bT32JuGqNof4zI9SxPR2sTEufvwouGuP2A\r\nbY4tvjkZmW35iClsGBjQkBEkGyDZoQm1bKxceG2QDjkPWcblgm70tfqXRQG2\r\nHcsaR7CKS7UK4nXsfqalTRRKk/MS2W9M2cJcNZ40NZjY4JwId9nnSSa7L+KN\r\n/dS/DrIOxyAanPwVGQll6D4S1omdpZJNKqhxiS7Rx/vf0MbZsjOr+kbvQV3Z\r\nLfbJxmwKHnwQcj178W0aD/5HPs8Z23jcJuD56TmZFRuZ2qXeUbgoG2/vYRnr\r\nkFlJkIRiH43Y/ynr7sWZ12lgpFZEMZPvowL91wMlqiD+ZIWm8QAyIsq3rULk\r\ndfliiRkdAzraBi7Mk0XuwDPoZCt7EiDfOi4=\r\n=a8X5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.98_1680385275051_0.043330932393854216"},"_hasShrinkwrap":false},"0.4.0-alpha.99":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.99","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.99+c46a6b81","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.99+c46a6b81","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"c46a6b81b8a1e28e05013c27ffe2eeaee4724130","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.99","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-90Tiz8cevc4X9HoNCsY9W8KXK9dSMY+d7FQ2e+wgvYfGF96U//aqCbyHtwI+3pSnuNPQ48SvnQ14Hopo8HtRaQ==","shasum":"a77781cd3357d71826ee93997472c55ffe1a58f3","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.99.tgz","fileCount":15,"unpackedSize":45504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHcoBZ0P+BQ8Xj0owxkj9Tas+sQPn73DhZAIWhku2OxpAiEAz9Ifs99Ju+VSSZw6iMCu8oB2vYTf1Kdmo/u6XKdS+Ig="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKsEmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrstA/+NaCwktM9n/QeeNrLJxuFPbflhqGGfqpKfBkieWw0yRKyPBh5\r\n4xQeJLw1G0iP4ihbO741sydosHEyDe+9d34RJiLpNHjUDSAlVOMrknhMKJ0r\r\nDW74QCDpoSVECru9e0aZ/fimK4kz3wi3Dd4ua/vDFWomE67pSc6cHW8emr2V\r\nqNhHa8pbHuFvQMwftUBDokZ2gA+BLlUnClEfraiiueoCSn69ivchB691ic6W\r\nvkWsPiVQUPfafpalTzdvAR/kWckpdm29g521pb3T+lK+iG2iQjjQt1ZO3Cqp\r\nWtIhJy7xOPogpz/BXTTp0ti3X5ZT+p11R/wdZ+jDF3Zhk+AExAmCQhnpkFNT\r\nCFDJl/FbYiX62DGRLuhqXeRcPiCnqCIYPs+CUGEkTcp2ErZ44eLKriz9GRPt\r\nwmlHVVs4OL96A/6o3RtS1LM611vdDyBi07pEdPR9kCyAkIt12d6Akn7KXZWB\r\nHg3qA3PnQJkWEUsvCChsoXxiK5G6tPCxdUMkL/dy95n6BZff44mJWdD8jd9R\r\nK+ihpxyTfL1Z42yXvOI7TwAjWXhB2oXm/51Fom9Tg4cWIKxCJ1q/GliWQ8Ri\r\nGsTiYtHcOSMmiMRNYy0gXd33G9SZPfTpQJUx4/WK0gNPzn8F4ZqgUaVO8nE0\r\nmd8ZSlHV4ZzlZ4tRDpO/BglzxTceHTMsAPs=\r\n=2SGt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.99_1680523558735_0.4426269850299922"},"_hasShrinkwrap":false},"0.4.0-alpha.100":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.100","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.100+c888736c","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.100+c888736c","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"c888736cb6b51014e23f5520fbc4074cf0e49e15","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.100","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ieH/k6TkmOvggxVKEfNEQnSF2F5nM6cHhqO0BQRihnXD+aSHtkBarR+MNlqPLSBzZ0tcXxlh5s49v94/6Nzjow==","shasum":"93bebc9cb64ed22fb6531d90afa6964f35a8f0d7","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.100.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2b5aEa5vYn5HI8Bw/Pdjsx8P8AxIhYaPSmy8uan4QFQIhANC25WNjyhCpZERo5uJ5xiPAsaJkRHkzht6VrSJXnI+x"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLCusACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPQA/7BCZiTaksOckg20FqX/EUc4h3I5gbf9NnUWKTXMVbT5NXSuMl\r\nr+ZIfTdk+8TQ2eJV0OdRKnXC6la4FzB8A6BwM0I2we58AN1o1vtcC7zTMxYl\r\nbSUlHdvcOVRAaOCXX36x6HDM1vFeMdHy8hUBwjjaSrsIgEe2rJjAxURgYcJ9\r\nRyHOjSFksVS52YBz/VRUp1MUA9yNc1toFUoF+oRNuEh17m1SbmnIf3wKwVQt\r\nnd13aCmrP18kf4AJ4Sn3UqVFcxt3dhwJdYp/TLV8dAscwyui+11x9h3FYo64\r\nsZfE4hlCUmk3u81KM8D4rWXF2LHtVgN3nKVKBnTLNXuB9t3y/V+SRDMh8wZl\r\nbotaimBcXEPVsyFpCVYjYVk5J3cJjtrWr3oOoVmcHE8jETtDP0GF9uqMBE9d\r\nFUW7bLdlWrJm0F4x20OqpdLgvEPPyMgf+3Ce6DfSDywfb3T2rm4ovBY11XBT\r\nJzkEkw5Zd3GqylzdfIksohutlT9RSZnOB+PoDFlM3N/aNuaz0kJDTyTxS0Zf\r\n/unj9X8FmfZrt7PjPUxKsc1R7/VLQPIcgU9eojYiSIvmx3h8quEjxRMTkdBP\r\ndrKSUro3Y59w8CY7cTuMK3G53Tl1k7m6T4IhCgDA/HGTyAqW15Xu85fuUGaY\r\ncNgDI+rhBI9T/1hgrgEijdUXbB0UTfDJO2g=\r\n=V6WN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.100_1680616364025_0.9988294307592636"},"_hasShrinkwrap":false},"0.4.0-alpha.101":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.101","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.101+c8b16a6f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.101+c8b16a6f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"c8b16a6fec8bb693e67e65709ded05d19fd1919f","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.101","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Z8hJJP4EP47oVajoLEmVXPTjrhfhwnHh3PyhCWPIh5E+KtOrts4RBpaX/ylUY9WzehYl6Dck6ccSCqEqTajBBw==","shasum":"ca7dd593dd3ba3aa1ad32594d35ab9cd6fe0c1ad","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.101.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmhjkcfx0kLKVz0vBUy7P1myvU4xVm0myR+O6/uj2jiQIgSE9rbXOFChlvAhqIA4j35i3oNqpbXsVyVTWdz6meVsc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLC6ZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8kBAAkheZByA+3B1OhEt4Scbr+ni5a8EYbJAQowunfUDX8cpAR67j\r\nJL2FvcEEVpT5P7aLLjzHEgx3LXIBaCzF+obOLLdfgoxAMI59vlSwwfdshOcx\r\nJgBHKdD9lY0uZVavtSQAqXELlHZ56zwyi8DqGRUDWvLyjEQmrTcBVn7PWzxX\r\nAgIUwsyYjtj+ww3A/7YFGW8YFXh7DGEhDp6St+UnaOYjJ/ybY8N+kvOLTF8g\r\nnVYDJ6NK3njue5a8BTvdFL81KQVlOoWMaqnBxnfyv/K6bVylCNoKHSmN+WfB\r\nqwp6VApwOWVEdfQiBHNG0mjIcxHsDJMMLmW20EnPComBAAgqc4NOCgne5qjw\r\nNF2qeRdElFWzwLYZJyfWKGjC/zGU92ND6KC6SoOYLFYNpSFpDqr2UXlzcGHk\r\n55Af/m5gWwG8DFmlDeiOfZ7Q4C6TgbuK9AFVjg85EMzttaVZl0nPnimkC0s4\r\n1gn2jY28rpdNjr81v2poyGG/4LcfvcSveHqY4WmCP2IPBjShyAR2ZzGev0H5\r\nvi4nWKEYGGiXl7WjWU2GT5RfQm/nU7kAExWcQ4Knizt7m067cd35LJ338Zmc\r\neuOfUTi0sIjjpii8zgfiNE1RO/qez9RqdmL5S1xtoQEsxdpSvADOT9iohPFi\r\ng0HiclmMpIcliqauC+zPrXq99pFdTOrKJPE=\r\n=qWbf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.101_1680617113528_0.7002692076808898"},"_hasShrinkwrap":false},"0.4.0-alpha.102":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.102","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.102+fe10fb44","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.102+fe10fb44","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"fe10fb44056b7592ff4b5b4bae263d7d3621e20d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.102","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-K0kQClnQJHSYbc7hKM72HV6VelcqQclhdECxnAI3bNOI50sSUPZC5D1zcSDPzXb/F5Iaxjs5uPCUR9S7wpBOew==","shasum":"8ed3c9b60363ecc58286a8d6d672d19840e69224","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.102.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsa7A2WxNdnAevNJCqR/pboe4lbV1qWyeHEoOl5HkYsQIhANwV8m/sWxks48PEYuEiN8kXxRVhBoALgDhJuKkPkeK/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLDNTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhQg//Q8tIjq/kPj0YcqDObhOXTITgy5xXJjpiBWvzEKOKWYBtNboj\r\ndA6dnnFTppxEwBb68yv3HRbXfRvraoTOwvA6BVG7D2A9xEjK3LoTMr1ez4qO\r\nHldHHv11VzqqRF99ZELBgSBiOzHHVS1yWj+HvXVSkTLRkkiEn/8XV0Vld4Sj\r\nmsprMmwqdlS71STE0LTbIFUTBQ0VcPgw9HbYT3SmvXxqX0FSEn9LkAEGN+j/\r\n1iLExCLX5TwyvO4dCJAz8Bpty2njCE9gM36p9RtbnVZe65RRww429HSSlYYe\r\nTnU74z/bb90HplmCj4ON1Klcs1L5CBpICx9EKH5a0gZhfCPTNyWp6dj29PBr\r\nyulXAVbYyqsgFx64ou2qx+NVM+JrsmYjzXwD2q9jr8PN8GP3pxxoKkzizfi8\r\n5PwRRF/y5r37zwPnnkY7jwDJOMb4y1inQ8QhB5SVc3J8pvbC8dnPOUsiY+AI\r\nLxiFxl3i3+NpK6ivR9W2/n6HOYHMn+/Ezgonx4JR935zgLBavMVIwxcrymN1\r\nWfk1VY7cRkRr3cCmsrRkZHF0ObqKo8sO3V+RHA19EH2bvVTsSxwnsLR2TYqP\r\n2ocB5WKQYWvBhNhqUoZVvJQyhGUItIBxfv2mwrFBuZD5T/3A8sUkt2qlnuPP\r\n4SA7yZji3ADYR+vFv3a/ankyYnjVs22HsQY=\r\n=t2cI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.102_1680618323022_0.48654413819748665"},"_hasShrinkwrap":false},"0.4.0-alpha.103":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.103","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.103+7b596291","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.103+7b596291","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"7b5962917488cfd0c5adc170d3c3fc64aa82ef2c","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.103","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-HaB0s0yMAlSuBxl74AnJUtHkLqklSQEzkjg65O2dl9OifgAknaQ1KmTrW4NZOMxprbcAfNM8eS/lhj0WCMmWNw==","shasum":"e36389ce20b92fefc1b938b5b2a4ebef3c49d35e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.103.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBcCAjFG9pJzyt6ivP962Ezqa2p/cMZBrRzkszynS8lwIgML1cankJ4CKRL79W7vpq90f47GpSf//ikajcL/gQJpU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLHsnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogXxAAojj8Ae13lCCuEVyPQd0GydXhwHAGPmPDKVmXVYxqk9mg5dhl\r\ngWk/OKQCSU5YtCFG/UvXsBTL1mJqmd27zFVwPhPOuLZkJevSvYyG594hpi9r\r\nAGwOfVxiRU3R3bNlwpxzhcxTz4Dqo8OsXO8fugEMpd6k73wEpr2yLvJnKhWI\r\nIVlACb6VUXQ7kZJM4RBrqKYTj1QjFpxABLtVF7ymy/VIHx6T2pqNHisg7ie+\r\n7BLBiEtdAUEcK6OjCKP11tGLhJCIU9Sv/QYI8Q3hILDejq8tY56nqTglHEBW\r\nrIS7qNHcn4wY/lP0pqgF2rHXi7FMj8S+POp9+XGArH8MRJ2yMQ5NOKG8buIF\r\nIDBWc1XSCkDUwJvRcPSp1TsYSjFcGDzt9m8sTAzZOwcN9fENkregVB+EU42X\r\naQJFQFqTHkgs0RWuV617yVm8LkRBNDdzPwwyYAw0Q0Y853MUzHGgzIQIQ4mk\r\n33XVjSlSCpwjn3CTsbCPDkZ5LqzpEdD9++9YzqImfrp2i6zwZHfiyOo7gnKV\r\nUJ/zfYtcIsKbVy4Z3A9NV1JV/p2xK42oBNrULojj9LAS/l2/jD7tSKs4udRu\r\nG4aWGp08TKAstjokpemNb1RRBj0BfbyMymcuBC1GLtptNp95rKOeC1/mUivz\r\n/1ful6lFSRD+MYO3SQ5vi7jwL/jFORF62ao=\r\n=BzOr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.103_1680636711718_0.7607164609922594"},"_hasShrinkwrap":false},"0.4.0-alpha.104":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.104","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.104+644e860a","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.104+644e860a","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"644e860a05f40166e26c497a2e8619c9a38df11d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.104","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-/F3JTpkhZIAPih0YhaagTbcvLpaMufxhWYmeBA3capEMzMyz7iFJBH78glib6E48W0t24172zTE7to+WxWcyrQ==","shasum":"6c63161678f44270e1507464aeaff7835e99cb99","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.104.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbuGc9hsUHW3BoyuXlQ5NMRsZYglEu1GgoG6E3apov1AiA8HFV0mUoGllDhS0wLNpl7CPKavDVfSG2H82ZutDZEPQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLZFVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmof/A//eVOqAdD1wUnJnkOlrfOghr3Xh6mMae5hVedNqbbolc9erwB6\r\nE6i+L9t8ebYfJBjpUriHk2cOr9MM/0RfxZHvDnFyGvXcMqb+CDWgV3piXHIu\r\ncDU2F38CEbZwDak37fd+w8bOhK56GYU1DiyuCjOP4BQo7SEE3nKfD+dQnxR0\r\nvilUEJUSTOEBoQ0ChnC96QWOLN4sXDl/28VjBrldZliDauVmzygk9ghge9Ft\r\nqXStexmOPx7fUyacxkeUUmD5GRXcAIPKyTry39sTGZN2o3fzR2FYUqaLu6F8\r\nycG8/IWwQP1ztc3b7nM3D9t106Il1jgPigKxPpguLymr94Hfl26+kVbiAaQA\r\n+WnZW7auZLja4DzMkfHDcIRGuNP+RIEX5hH+aEykJYuZUrBWno2n1+4ai2lm\r\nBMpA5rPh8TiNfUlLZFIz70oUTlptX88GvXON79LltTsXHjirLE06U5TnT/o5\r\nqxflIa7X0Foss+2tHf1HiDV28GLk1Jl9nPiTCynlUEWWVPzMG2ZEWnaTeTeh\r\nO2FkSnX+V2DAQuop0X5ehLC0nV2Z4+O6OQjg00dT/YYiXV+f+l1SVO/aRxQ2\r\nxoFop2W4pZvrD/QGGRhwEryAbr3JKwVxniyVgp/KexPutXcW/rcGjS7arV74\r\nrzKdqhiiZYINh/gppFpitvlJYiriAWAuyeU=\r\n=A8O0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.104_1680707924996_0.6415792687884321"},"_hasShrinkwrap":false},"0.4.0-alpha.105":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.105","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.105+ec5c2335","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.105+ec5c2335","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"ec5c2335394e2df6bd8717907f03e5d2a430e9f9","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.105","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-SiFSWmAtCZcX9ClnOhNW4GUR8lF5+8KKX1Ra8dlvOn6f00ouhimRu43EWbBtmlQSfvZYheu+mVKAlpe6bx7Jng==","shasum":"2d4be388227dfd9f12742f100e15ff51e49076b8","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.105.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuyUyk5acH6Rh8DXvb+/a+WB8nUvkWlFGt1oBUDoVPAAIgYfaiqeZlxjkiN3SiVqCxX27p6EQfGkODRTSZqW9U2Fo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkM+tUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeaBAAmMAHIhfLgLncoV05DvExojoUWySS5v4/usEbuwrcgjyVSSyx\r\nSjPt7Lnycf1m9iRPovXR2xNhLYz4P9NOi0k1+UNRs44fa/FM8hCVOVNd0XKE\r\nI+U3PsSsZ7BJw0ivEQgLyX8A2St+4OE4R7kXIFI1rKTonRxQdj5oyxrG9Ni8\r\nY+FPGtL4iZPiAnz0CzAuzVIL/KqMMugUI71i86jtIpvf546HG6WXta4rvSln\r\n2Z5xGslQ189DBFTgzp9kQt2NOwtCpn7LyZKkBK7shh377jOkGxgV8Fni6Y4A\r\ncfWocucO2KVR4HAqLXW47eCw/RcSkw7xGhxKPT/xBHTP0vnELdJ26/bwuQy8\r\nBH7i2dkRPWwpLkASHuFp2Vsw9IEoznNL+QYFICxsHhD6KHigRlvAPBiTAlTS\r\n6Mdri5Gd772vspdZrkWoDCicAeqPyD6pG6UReivTcHes3LJAFlGEQkovsfR7\r\nEsp8PXTS7kS2OcYKu3sdm4x/C3wBVNTMgR6HrMN8NJJ11WeoIrIZLUJljJfW\r\n6JGlaKz/pGEI/6NSwpZdPFeKWuFT0rKtptB9nQo2sVd82s4AZuta9MaJjthw\r\nrpBYyxGcgUpey6jpxPjWfOT1JTJV9lsjUjAt/D867vl5snoRndvEHUvvPv0O\r\nNG4qZW7rRHiX2HoNw5ba2phVkLUHFtIVFYU=\r\n=FRrl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.105_1681124180310_0.5796473333154706"},"_hasShrinkwrap":false},"0.4.0-alpha.106":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.106","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.106+b35fec43","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.106+b35fec43","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"b35fec433f8fab513be2b8b6d073f23c6371b2ee","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.106","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-p6TOc34t8gHyUQpkMNx7nVrF2boY47OObxH4OSe4ySdmU4Dlp+ahZda7I+KxXHp8OEiM3xjIiXqyYsZjvBISRw==","shasum":"3ffa92701398cb29f5cd64eb8da51d4631b34cf4","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.106.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVYtxpQ5yWnxPd74MO+F3bnTMuOAtpwHxYM3AaHwAZWAiEA8rHv4LPTgSy+XPmmlr3rjOYhdvCsE2/AjfFUifrIneU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkM+xpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp96Q//TWy6YsYq9sKYJ2ojasMq5+bjLQSY4vrSHRHtN6ZZNuj/IKv1\r\n95QaTQKjRiwsSoJMM94LnBqdDietWQzjCvI/Z+11UC6uZcTTEf+TWnBqUFtf\r\nXP3t1KPuMvN0Ut85WO49+PQuBp6cCHV0jDvXCLhK4itg1kF7teFgDxrWcRQl\r\nrmq4DogJ0yumJFX8Nn/sf+pkqMyjPMdtmL1MTvfMGrJjSLI6x/kdaauXHBrl\r\nsWZnZiC7YwDBdEJKbgp8aJRsUXxj1yfqzVAsT9CXODeDpxJVNewZ3+VKnnLo\r\nMvFBBpOJF+J1hI/T59xcrNZ8yU234t1QoUb/sJ5KwqoAqUA9lzM/HZOdFOZD\r\nOMOq0SqScQ2epYH0cFmCPEjEDhDFzJhWdT9Oakk/0rC1MtE9oobucUN4HEhQ\r\n1Vikl04t/ggXaN3xqaTjfeKXhuJDb/x2rVeUgGA9CEz9tNnlWLKhQj1SPttE\r\nogSKIcuH2MJCCIVVOh524HMDlcNalf5DjVL5OuYtclr0GmqieJ+Q+9zAPbz0\r\nU7VzVq7/9Mi/jZwZljAIGOggbQo4W6GcZLHiLbLDAaCA2HhVJ3hHYuYX1TWI\r\nZpb5Pd9fJIsw8vHMY8vKTFGCjbccnPqDtJxF2TtW6y7lIytJ2j5wxprwGysC\r\nHO5fsQPySpfqVEG1Is7IE22J9WXvLm9m0VA=\r\n=USqg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.106_1681124457393_0.5223403731588887"},"_hasShrinkwrap":false},"0.4.0-alpha.107":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.107","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.107+4e7a380f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.107+4e7a380f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"4e7a380f7c53487209694ddf2091e9f47ebca2b5","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.107","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-gBaUcZV7jW3m9xuqV9y4ALIbI9vmmFlI2QElQVMqA5kDZ0u7WzDq+h4tVwhtXTxXk4vhSRkGMWUNaHcUJK6aHQ==","shasum":"d92a30c02fa3079481c56631059f68b7aff483bd","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.107.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpqdwkiVr28i8/Yphn4mEuJ0UDyhquqjAwywtv86s+TwIgORLlPBME0olrQ1/8byuIHF0WFo0RgfS2qSG55SV+xnU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNytIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXZRAAmi0YaPbIGAiEQfMmVISgifRGgUosP5vFmiYpmcSCXhZjPcg6\r\nWlNzZaPVgrhoEM5ST+T/7+BzI2j0EnTvfolkm6Tcue1lGFMxhEYla8Y9Q0jq\r\nG5bLcvg9ZVxQvIWP5G135P5hp7vHivMhmtThfCphxhIwI9YF/5ru9I3R2Rui\r\nB/A1QznPgDxT3xnZdxT43meH/BD6yEqY0iErpFsAWBsBQW4bmzrqnk4IeZHc\r\n1fms+w58ek8dyzkCz064KpESVqDZ+obSgxFUAsQ0Q6Iw7BoALxThppykOfL5\r\n/3pC93Doamd1VwoecESV4I63siyL7B7dddVjoPkKu7k3tQ3faslu3NtUs23x\r\n82OyocMNIptnPjJqDX2XaNRiYctbXkM8up/nVvta74RrhQvd4ZxToQ7xXrVU\r\neHjpeqnmSs2WA95P6xm/gPMXnP3B2z4r9cu+2B2UR9CP8/Sj/2/SO77IJT1+\r\nzEk1h/O5c1X8bBS6o0LePlV8Iqc2RYPNrvH0484yJHoEqW0dBXXW81qxvFbw\r\n7QxSFHDY9SrHnXeIM7RslxrZ16mJU8SPI8dQpcJUGtEmwPZxBOWOBcV9Mv7S\r\nzxAdl+KJ41nhPCxLzpOd6cMz0ylUeSf81oef/lDWJsuRq4rgm2K9oyFVANhw\r\nDjCc+2VIE9ZfaGaNQIB9CqSqN3KTPIgkQQM=\r\n=0qX+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.107_1681337160420_0.3980932159463131"},"_hasShrinkwrap":false},"0.4.0-alpha.108":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.108","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.108+b38525f3","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.108+b38525f3","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"b38525f3433e50418ea149949108b4218ac9ba2a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.108","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-03hmtmDBDbBeH8L1BjkFIDCuP8SD6AfDhCAaQk/5QzJU1e0vhpZJS68f8HRsI1/oUO7YtkxFO6Dz2hd+V8lhgw==","shasum":"e57eebe7fc359564b410d5ce34237ed1b3109234","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.108.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH3sJBO+BidDPyDGZN9Gy+0NK3EdRLmzXv+DL1OSSYfLAiBXzWK5hLYL5uhVsG+xNwfCBPZ5HD2wUBhwx74S818rGg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkN8tMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodQBAApMELNto435F7dXX/az2S+qgtzntAM/dONLiacPMEcRf42Lj0\r\nKPaUom8EAZrDz6/O8p1NB8XpjdkB9z2K6NaBYCyL0jJXPSzVty4tdEmAP+As\r\nYZp4MAEi6vMJ07KR2eIu/xrK1tcY6G2hjGFTXu41bZO+YMz+fu8D1dkZRTyL\r\n4bB6yBPVuqWczoWhYSdVIzv+cxNPUiOxu5mmutSiKfwIxD45qphX3rCuZq5p\r\nDm54a1aV+WNGTLwvaP8cP5yxn0iaNaLg3tRyZR8pdkPeJQeWeZOIH5RE65h5\r\nNRN0QuNkAIPN0qRNSQFFN6d8TvsKC8hvQzOIgEqjs3lBKFDhf/DGovcV9plw\r\nwW+jVyCsNE5ZUvy/Ec/8DIHP2OMmx1s8S91eFZxaApMUEULyQInYGOTbvjzT\r\ncVxT9rZbpzj8E17TfW+QVBcsSoaXmOjAnkKa4L+37vKlz06KSNes7fOE3BPK\r\nVbLFlhDM5bVdsOmn3HsQR+c8lWLnR0kR1j+vCbooIyKE1WVU+NTwESID3zpp\r\nHBXf4LNG3d4m/z1JYor4e9RKJOVaiDwdkQKWGwx6SZF0yGzcIMT/EnAfbALn\r\nwwFGv7RBuLVxp8GnGo8fxN8SsAjz4Y8sQJNKuPd8aooF5BRwodbheb+O4CjS\r\nlwFXsbD/YkoSvOqrI/30Gzp/LwFi7v035lE=\r\n=UFLb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.108_1681378124557_0.7341201206037749"},"_hasShrinkwrap":false},"0.4.0-alpha.109":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.109","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.109+de90cafb","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.109+de90cafb","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"de90cafb8d12b7a940f881184cd745c4b5043cbc","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.109","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-TP2ViBmFlVXywjb6qq06SfWv1/BeICMQU8TMHCHq9zCiWLZLagbM8J/0xF0rANzCp4TF1FFB7tOa6sDmpTK+Mw==","shasum":"ec2f99e012c43518abb7da1cafdeda2956a2e077","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.109.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDPS3oV47TICeHT7YbESqkB55YRz8ng4HZAEoXXlk2sMAiEA85NYwse2SjXJAyiDmKCxXOQ7nenrIay7/xpFavJymaU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOUdAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqekg/7B5aH45/dhs/5N9hhV1wsbNbd8ov/ApwP1tI5a8paakM4IqIb\r\n6l8WBxBX5A6eIgkSJQPj1mV22B/jf1Y90lb+J6Qqu1KAsyEJJYQHF+1w8NRk\r\nx2xzfW3voJzQkIZQyP+/Vve0jlDMcc0QPAQ/YE545KFmHT63lYwAw89zkGhj\r\nZANCHnlo6/o90V/+wi/xI/dhZ/UwHTuSyO7mwIFR84LFO5jRPLyInfCcJxap\r\ncNj742vawh1b6AfOELqj3C1zRiPw8ZIByjQI4I9sqQ7v0gu6zEKbKo4MXKEM\r\nEe8NgvTzbBxKxtTYlfuLvSPi1Zl8YNo1womDs5hehX5XrEst4N5NKT4NJODY\r\ncd6WwnsWEsP+htplr6dYsVA4WsYfoXuFBgQJxndFOswO+C44PhInQyhCBIxP\r\njoWbBH5rauk4uiM/qfEDMFyq0R4hu1sWtVc406SYgO4TU6nv6oBLtb0c/nI5\r\nL3IN8bf36pX3yZIKQ6fCoSe4GERYtqfifIXlYUSf4gg//nr8W8xrQOaRstVR\r\n5oz1jk7IMrLzcsfTIm5M7+QU1C1RpFze0yUgi4H8Q12OXNIHmpGE9LOn/Sdr\r\nhrsCFHW6+SBbc3fRprCEUpepRcTjhPVFcpRfqKiS+wGkl224kSGOA7F+28+n\r\nXz8sdOnPvid70+c0ab3YwcH5lmhUENoZo3c=\r\n=DoFi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.109_1681475392144_0.1482503995830451"},"_hasShrinkwrap":false},"0.4.0-alpha.110":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.110","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.110+66afda2f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.110+66afda2f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"66afda2fe7311977047928e0b1c857ed2c5602c7","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.110","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-CtpVpdpk6chR6byUHihSsozevP6LmXASZtrtWkBWSt6O647+GSMWQ4FK8v5dh8iIvOPj7EjzNl9xcJontX22Sw==","shasum":"b9e6c9f3a4223aee7061879f638716c1e13ef25f","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.110.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzY11FqH6X6OCU3rYzYKSQFnRGQwpOIFlDoUarX+5shAiEAkx6ZkvCXxY+Fu+KXS2WsPJtVEaAecElwMX+m1Mtnnws="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOdz3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqweA/9GfsSJ8ES7FTqBoGnPkauVAIdQ+rg/KmH8H/ERi4mLPWBsoy1\r\nP4L8+BCcEHyPl3USfdvgL/bFAStVEPtOGxfxVa9Zz3U5UGbFQ3ORwQUrvXtB\r\ntGzx2+0RCer0FEavmkn0LV6uac6WCo/tLo/23lk5HBOZsfEmH8mjiNCgzgGZ\r\nokqAwusvOk+jUOCNgJUmhOjUi5GI+jlg5cOC1P10fIYENG1Yt8p3oM/J/TWO\r\nwMRim/Toj9BBV53ki98Zp2jl7k6ZNBNLOApKzpZfY4QAuU6DsIA/5P39JNMd\r\nz+Zyr6nuDtz+9AkdaBSR1Wm7USSGgYEi0kwOQY2r/mkHWUeOjxElVPDyqkED\r\nHY1YfmIMuLC+k5x++JlSrdlTUwvMfidgHwdwUJzXMVxWD4R8hG9mpEU9aHlv\r\nfLrAVcFssvFJKiRjuIyBnWPUgRLxVGFKH7e1QJA1/O3WdHTo4fUvJVKOPFLN\r\nA/R3Ijwr5HT4DP6xd/Ilp9q5vtxVc4gX8WfaPcT6C74jGb/k1lfzJMtH5nRz\r\nxBXMvNqSEOM1573klQMGdiFGz2BVGN5VboZtpsZKQ1jL/pvK+gPbaSGQ3WtC\r\nKihSeEd4u8c3BkrwHjjpN67iKB3zDD20dDk8GIPsjs0b7YpTQVmJgVjhJeXz\r\nFn0eJv+3NcepsWE9HhUX9bKFl+qRagSY2Bw=\r\n=ope2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.110_1681513719553_0.44692221056464065"},"_hasShrinkwrap":false},"0.4.0-alpha.111":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.111","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.111+8a933c05","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.111+8a933c05","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"8a933c057e0c88870779bf8eb98b4684de4745de","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.111","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-r2Ql8ZjQHNcVYrrsxzqRa/tR4GO3gm8x7z4gfBnZtCebkppoL6rj3RYktH7ttKjnu5b++t/asaqni2DY2Qneyw==","shasum":"b961594a098cc5408e7342df0c5e9f9018458539","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.111.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/jHb9sOCDWI5YWCUGi2uYikr7Hz7iCsH/+Rtn2Ob06wIhAPdc4BWI1KbY6NIQGYlel0h9tsx+N1ftVtv+7wVTADXQ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPFXJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTIBAAoMEBhrtQ5A/+QUvRrHNIXJ82XEcJILGvkLULkohquLEVNo5s\r\neLhR3ZkokRy1YKMY8cCGV21Nq5x/BwPwfC6GRWcBTwVs6VwplEBdQ7bZsDtg\r\ny3u0gyRM5zUXU8Q2lSqVqP4XfIQFAk6e4lOZ1LCoY0Gq9H40BCAb2OThOgEB\r\nWLty2Rgyo1WAvZcE+KxXUeIlbiTTAKy11pEs631rfoxqe+3k/u3Y/MKwXl5o\r\nqvADXxJTncUozR4gxY4zm4c4063cgbp/weIcaUePt4X/quDhExZdzclcxX2t\r\nHQu1qPlmza1ANCuIroC8gZBl7VGeZCCh3BJCEVLuWF4Dpt+jxyZ4RfAUYZPm\r\nNbInJYDfOGGu52ooUTpVln7Mi0mjoIAJ3+6vkqW18yetMMGXkgyH6TXsus4w\r\nLukM4EWgSaPQOMQru1l7FHchw6/ZZGvdGJ58msdkEOxjBZWV30ABB/JwuLbr\r\nw6/1si9SondwBxNP2AhLisECfl3sETtGcJbWIHmdIsi/O/AwGNMQ8T9FkCAc\r\nNP2vS1MgkF7Ore9lDB9C7A6hUsnX6EcbP5TiQtqYYIq5arZwimt7y1/XPufP\r\nj+lk+3lKhpOeCsvGBoc+pHcHCyjInzB2WL2i50F9BrO8DjYBVdlj2NMq6aBC\r\nRvYoLWn+O5w/4yIp0/zFo2NrR0ExJY5BcXI=\r\n=TQd4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.111_1681675721095_0.9267548002540555"},"_hasShrinkwrap":false},"0.4.0-alpha.112":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.112","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.112+ccc7f285","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.112+ccc7f285","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"ccc7f28581acf495d3b3d55c684425ffa34df2a4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.112","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-wflnODO7q2REtawlk/Km1mdglh5v8Jtzlp/hXJ4rvUxZojhN0yvnYCLU20r+6PG6oHk7dvPq7jz4U5HvKN2q2g==","shasum":"6ae7dd6a5868f3e0bc001ce079e7dabe30258d7c","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.112.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNDVFBmGlV9q4SvZUg2AhPyNBxehPfuiDXlEqHDvVEdwIgHO/e5em5XCP9fgST7v9/vl9U7SzlrV4rHK1dkW1UKAk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQAWVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGAw/6AijXzRUd1JhD+9/r+PSqkigMgBkMSJhIVW4xU49HTNMW2Jhm\r\nVebg8XymEAYuXLAdpXF8G74Q7i4rZ/eye63SeWDZo84yvgfUG8jaaY2H2iUv\r\nMpe7BS0ufPKtfNIVc+taJlai1VSDmeUqGGbJxn5dge2BYJvRE1WUKyo0YGWe\r\n6MZsFNke33MwQ4TzQOcGHE2nUPTrv6A4mTsLvZ6BJ2vMoW29knOXNKQ+5JIC\r\nPtRPlxZ6uD31LrZJahkvKahW33d2qWzaGoNbT/oF4bcfBVo9GmVI9MouKxIv\r\nLsJD4zNiewcBsfYJum6/T62f2lPU7i//8e70Rc3H3/HKsc+FoIa7gB/mgOZ2\r\nKjikaDKzCCqAjCC4IGIpGPhkJPQLJj7n8SV9GcUbgJxN+WtEaQbzO5QZ24th\r\nrNScPSf7vDugolNg9RK3YUcKn2051JqQ5DsBsst3MFtHyKN2uz/4PhgCSFbX\r\nQ6WPfeyk1b2uV+u1J8wkQskexY32MLiiM4dss1S/c3Amugq6yf64czLzVgO9\r\nRVothxweCNVt4psHrg4hhree2X6JssiyVX8uBvxQxJxSofirvkaL40UU9JUp\r\nGplRgQnU2KnGffDInMJTqA3swCiR3PCTL0PJRvj/bWJ07qwuBzxrewUt4eTG\r\nrj3o2QQC7ojwSCLGVol17tRfGcD7XdTKuTk=\r\n=9+7n\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.112_1681917333097_0.23419091234166145"},"_hasShrinkwrap":false},"0.4.0-alpha.113":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.113","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.113+cf98f76d","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.113+cf98f76d","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"cf98f76d7d12f83bfdbac6375856f3b45c299780","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.113","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-oJzAWxgpdjGrALmBdLzzn55ElSHEfHgSKpgyHR9c8vkO3rV8E7Y73RkIVM8T8XzW7cWojn6GyLCkGBFa5ZGICw==","shasum":"17d400e0a3fe4f08e226bba5811c7360e11ec777","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.113.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjXOzUOJohLn0pHoqTvafzFrBA5rQSgMHDlTVzN6rPaQIgd8V423fJA+UEfopjDTYsdWHgiThH4KQinlpXRRws/n4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQDpCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph4RAAk5V2plqnu9GyMx+ywqyNPYB+kMzuc8QWBI82koPJUAolrhp2\r\nGWVBajz/RgoGmlDQopJ75X6nZuVqmnJLDj7I8Nz1LaOtL2gAp7B3VwDMhw4+\r\nGL6BexEJaVRbaP9NCTn/fBEVaDt9B8nAWobvwaQ9Y+1wJxNDaY3BrTnm58Q7\r\nwC+JOQo48uQS8bOugCR5bsre7h9PD8mVIASJ21QNl+UzTUdFDtOVwqORu4t8\r\noIYUqHV1ee3NXEvHsrKGbckAxeMpcnARGl06vYyfdPx8a3ostecoZP1cBjBh\r\nO3vTLT+k5TPfIFyS4XLvgISCiM8fd94TSK4h5VdyL0ZXbDYtX1qutkPz9RKr\r\nqbdnCF0MimthYwb8khs08ore/I0Pnhhj0h8PM9riaxhmk7vsjSdCofL6yFNR\r\ncyFfYae9mRtra5NKI9b+MI8d79ifDgu3q7XMXbKoLvl/YoYhzrF1d42T/BVE\r\nLAVOSmNd0DR7otubG/pebzFwoTTwkOuq/xalCuLfjBJBl9i8UP5zEcQ08528\r\nNWn60If6QUSRnaQ9dWl/5O3hs5+QBsUKCUCnUB1jCAIVLySo8m52JHHX7tBh\r\nT5o9VsKSbHCnpJNUjn+4WHNtYO6/icY2x/3QJ1Z8td3SZhebe7pE41o57SIa\r\nwmxBldyGGZBJxHCw1u3oxtIRPLfLnRDp1u8=\r\n=AGd0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.113_1681930818225_0.8553295209272671"},"_hasShrinkwrap":false},"0.4.0-alpha.114":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.114","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.114+1ffb0111","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.114+1ffb0111","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"1ffb0111fc3db170e5623d350cb912b22027387a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.114","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-GKkszsREa/9F9o1q9JjvksHPwLWj1o5a1H9Lsjn5mEzFxg0KKtsev40eoI9pD60UjPsB9r8mcipjVhQlMdtwlw==","shasum":"601b701cb63f6a855cd1f1fc4328ef7afedb5f18","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.114.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3I7SK7xIt/vXts2gQgL/3ZDNqm1jyfkn77CXPt1hAZAiEAoiEM0fDveTGtcgWNm5KzIFHd41/ZLCh4y8QAv36hnO8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQGY3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSdQ//QOkeTs0N7vYnhWjpYE0z1KJAh9vmmxTO98TzebGzEO1E8/W3\r\nwSy+DMs6WzwcZnoHr4U2oFUZm3oE4ssjWQBwNKvsEi0iqJVd0jn4M6vn/iZh\r\nyy2VBb9SRKazin3YLPFxDfQi/4GjBX/cQSJTRhYxyCYJQLhweOGz7cYqvVbV\r\n0+7JjR5IgOUguACnQhTxbZMEZXZxn24MvY2ZX/irDzUn9iL3G/dr9KXzGehn\r\n88P59pmYGfzjWvuYBKhGHBUCnOufbGYX/Z2PDTTBtbIY71HSBcXbOSolZRQv\r\n/cnCyq0R2hyzKS5dmCCNR/TPl47jrI4fWfaS90YURn4xe8lEiKIO0UUMqma1\r\nlx9TzKFCISUJ6Oc2QIZjLScwkRqkaQsz0cHz6bkM2iLbQNpNN6LKFou1DTgd\r\nd25irXUKez5/txoJiv8G4aRXoXhbQVxFhmWn4dNxlcNCJy3jpIZojEoL/0ca\r\nDi49O2pa0yXXKBz7L4H885U98dGiFH9w6r7LzN5HMZ6/4dCSDyRCXEDtq2UG\r\nrShCUnUf/LNXrc2o++T1r+pnXfLPMm5ul/KpgTnAtLE2xRan88AsvwOkWWpe\r\nauMXi5r7BIFC0XfZgoG06/5k1O69wNdOD3XmrzP+7OnRMDMJCGxuKT0DANRe\r\niqL8tnTJolcf2UAI+KGl/p3OxCS2+s03xks=\r\n=WEur\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.114_1681942071061_0.002614104743580814"},"_hasShrinkwrap":false},"0.4.0-alpha.115":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.115","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.115+d247b53d","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.115+d247b53d","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d247b53d99629e4ba768a55b617a217936fcef89","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.115","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-QDdjawBw2TrPX2UWPSI+TiaBsegvRH/ONuif8l7Ctkl0s36h+/1B8hlqvaiaBQWwtl9o/PVE3mMO1OReVFb7uw==","shasum":"41c914c0c228cde859b4afc5f28e03caf84086a5","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.115.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8r6q+eR1x5P9E9zeMOlMoKoqNnmeLH2v5KagigoFjygIgQqzZYY0kFa/vvSwt4GjBd7SuHBkMV7q6M8cx0E0310w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRnDAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpeuw//e+deOII+hUEcyG3KAUS99CUri41unzcGCvunZM5SkRD/CaKG\r\naCh32+F1hVozLBFYj62nII6VeoTSKmZU5VX8vdUFaP67zua/ijSVaOOTrNdC\r\ncCDUtDF4jPx3mqL+hvmAv4pL502vpzt+oYIdHq4oKt+JMUh+slxuG6plChfq\r\nFp7WK8ftvOaEIoQBMA3VJyY0CPG5sVMDTfgFm8RByyW6dhUm/VkYCt0fepAE\r\n+6YLnQHSldP9T4yg/RCAzfG80B9S0o3kTsrdB8uU/oyLfwjYYYKIUmNFR/Y+\r\nMlug8lMTLDOWuUYlSLHLYB/AY0oA7BS6+uPMwdlbwHo/CzRoMJH6QNCPjzlp\r\ncKQ2n++9EKCGrTeyEN5I918EiSSXG1h+D/MYYvAkVzNPlLZvnj2AUxvh0aId\r\nacq8d1lXyoOxMU3stbQM7DRAOklZ4a/mPp3Uhww6xHL3098NWbFLIVLxsXdq\r\nnv+C3aSSQ73vv6n/Xiy2GriiRtl5mmxsF/M0+XcVPWpc228BLygyc8wR1oBT\r\npym95HVZyPe7VFuWFrI9FDWSVsW+x4G/qwU+o8LxlVouQPDjnwj+ksU7KnEK\r\niIqsxCTHXXDXNalZv+hjluzbdx7BYtQDigHzXU1LZb/sTzTX6sdS9irGm7+e\r\n74RBgI8XaA+qfs/ljM+TVyi30iQEmGyzRNY=\r\n=J+kp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.115_1682337984337_0.016855194136166318"},"_hasShrinkwrap":false},"0.4.0-alpha.116":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.116","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.116+ef6164a3","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.116+ef6164a3","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"ef6164a3ba69d5135ae5671594e3ba82b606a05a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.116","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-2NADJPO6JSa3fuxNSbvrkcAViJx42zDzLWirSpZfXjtPEYw+FK3Es1fN/O3dy6KPvGUzBgWROGur17NctSypzw==","shasum":"b4a8ee5bb40e980c09b4c98e48018c266163685d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.116.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuqG42k9IaP7x+1m/B4Mx1HP6TJqO4RAgYIvzc0/lN9wIgDJsbICwMDUoQMqsLigFoJdPRJ3Fm9yw7BPJ/IAwfRLs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkS/uTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGbg//Tyu6ZNETXROOnNr1+vOuKVPN4M7xUN5Lhz8NFR/1zFHONqGO\r\neAhaUmBUgW3R5CYeL0O+Zj7vFWMrkMyyODeCXtO2l1CZ9u9T+rqhoxJzBTkE\r\nzVZ+VXTkPE0OuouDCvjJ2ReEkKiZAzpoa8TFBhrxwnbCo4cEfJrhQgVf7oDz\r\nQHJgaTFm8Urc0l0zF4LmTLHbMzq+NYTRRh95kq8WxpG3k3n7AAAF8hw2EsIc\r\nnIrU/GlcRjnpNZDxaXrpxugVmbQoubMMi/hPd4Lnmt/t7Fui0lEMWHqwaUiU\r\nd8/CnRzMU3bfLeE1XHAbNKVPMZZI0x+flTDEsY5md0Ds4v/vnGzfLZNfGHHp\r\nSlCn3Lw/wp8OZJIOGcq328IDtp5xZwvW003A4XfpW36gWkRTlGLzuAvL54iU\r\nSWtctimv5DQbAyMm9QhhZ5TT1C3X0Qmof3RqvyQTacSMybuj8DMUaDNfgx/p\r\nYCl9iAJ6/E6e3GoKnhZvO2oCwBvK82SVpAw/Rpt2kVl6m5lc5FzVLIoyT9wX\r\nRIXKNVk8Rzddsd/6yLoVBlSaD6T3QpJ9VpiLC3vy9k+iF2yg/msiUCETkwAH\r\nW1jedVg6WO/1SRC5FjFDaSZ1JbCH8KTSbZ0q4lH1PiyYxPF5NnwDExfsDwGY\r\nvvgliyJIL2ebPN982oIklT2q2kaHbBEbJ/I=\r\n=WCQM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.116_1682701203519_0.9937195985504594"},"_hasShrinkwrap":false},"0.4.0-alpha.117":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.117","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.117+83cf387f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.117+83cf387f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"83cf387fa52bb51d8adb2d5fedc5111994d4dde1","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.117","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-BF2FIvS3LRpOZOh4d59Rl6KHfHzmqQcJAO+IH4PYs18Dodat1jDotGT/LhdMVcFF8hg1erZMgP4PRTzLHCEagw==","shasum":"2d129da8c51f0d742a5dad57c015cfc439324ae0","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.117.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC3YckM58OfZMbwOvCafnnNnWgSllPBTq3meL4t+0D+yAiEAjAvmXEzyzXe6kjJZF2ynzDX4CnchQC1T1js5xWCjvx0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkT5YkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwUg/+KE4ax+g0Epr/m2xweD5MDOJuIw3VJp2BZckau1N+z+nOalik\r\nkMXf2j3q43RM7+R6+RD3UJccOAdaRL+jTII499ZzAwVZsqBkIgtGhXdrzFqR\r\nMVjlor4tpfzQyr27/S3oQpltVO9nuGIbv/L/YEY51BVoZeW8huIwlc5NOVX2\r\nG+56QtHsU/uTnEDM+fKrHigFXUNXMs+2ZNGpPES2WWVgZfjIXVw2hS2gWfxO\r\nhPbptmiV3z2oLl7xPZavcg0iuoegEHBq3hxXBlEfLU24l4j4I++sa0mdB7NG\r\nNssRR8Qn3U4KZJyzxpgCwLuaYWarTUw6zuUtJOaqrFUBRvWjZ2qM4kTKJMnt\r\n+/jbFgLW8X/62nqIVa12e4WlPzOHBUyW+aHmZX0ervrWdg0SMyXmgoR2NOn0\r\nqw/UALKJKsBv1fLWz/TwxD1orNDYUxVn6QiDgs1lkCned3kQLjO8JAJgOPQE\r\nEPkOEgmqECVZIPwf4g+QwiJoc9CLOKt/O4p+5SbitxN4+UJAuKymM6c4cfbE\r\nqZq3wgYGFAIAJUCVYqnfYOGEFbJGMIKWE+ZTGKIN32di/v4qt+be8XzT+HcS\r\nlPEv5N+Pzbf4hyg0x1Pnf51pDUxDr8rKMosApRpfttI7hwbxwuzH5wJ+J5o+\r\nQ7gX+6Og7HLndS3nxdZgLpU/SOztkma+Yvw=\r\n=XyOi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.117_1682937380093_0.10332172604791134"},"_hasShrinkwrap":false},"0.4.0-alpha.118":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.118","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.118+9a43afec","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.118+9a43afec","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"9a43afec7ea72a6fa8c6133f0fad05d8a3d2a595","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.118","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-QtTaUGD/Wrj2J/Q9Z/WoWD/HRlkLc2ZaQ9/BTpt1ptpSwlsCzKg5ZtKsJeRRLDKUuFgLo8Is/o0Tn1svdW/PTA==","shasum":"07dc24ac5507405a7fb6dee8966c68804788ce5c","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.118.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEqh64+R2MZwf6IcZ4Sm9qZVDfsxnKZbdJigxIcZrRn6AiAySt/8aXrtcEMx64me96RqrMNoEEfgAnJHoi85VPO3Aw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkT7CmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6Pg//Uw90xBruDp7JwE7t06btStWSjQVpHBXwu6S8YZw66LeuGXg1\r\n9X17dNp0qoX8jI2733sIcQFwwbembannpvuQLRH4gPMucSh9mZxocj1locir\r\nxEoqvLgAsGgX9nctFRBIrp0wuQHpID0C8FvzBjE//ib8JxPO6oqtsVSzMqtY\r\nIJ4K/TLLm4R4FXctUDmqMPdmpJRWik0LZhqBER4Eincl0eTUQAmXSnAf2cAE\r\ngX81twU2LYJmiIZ8Y/ZXMWlIAANiGDyWx8zpqy8WxLRVxAzfY8GEhGFXsjU2\r\n6RiDigrUgCn+nQvCQ5VYoTsmprTV9P2N7Ed+QHCLv2MYozNhbJr6L/M63Ce+\r\nqZ+nYIF9cpWyfnU67drMpShfHwq8UVKWp1BfQiD4lutsWA3/6KCy9EtfKgfe\r\nP0VypCl4GICxFx95R/KcWJ64BJk6n+AxbjYnY6WhzReAhWbbBK6OjieZ2twZ\r\n0kyCVQNtELI8taAm58qSApZvjgqIsROxdvnCv6C8EsxzZlEEMeGdYUIek3a5\r\nKloYvvBL51cpfq7lDGqcARlsLSmAKwaZXl6sXab68AptjS4CiMM6CUX+329L\r\nPcJQOpIJT9F6VkEt9bvpnem57JU40aRAoeNZ9LQunxcWOgBWE1C0E1BG8dla\r\nx9Fcp3sbzGqjPu/pr+lsaEu6cowtfVfz9jE=\r\n=wD72\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.118_1682944166674_0.8086479138682698"},"_hasShrinkwrap":false},"0.4.0-alpha.119":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.119","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.119+41459572","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.119+41459572","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"414595727d611ff774c4f404a4eeea509cf03a71","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.119","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-5HnMtYX1tqfns3Bg2vxrwF7M8Ioh1vDER6yswaLzKUkZLl4Hb1VI7cdn+1og8nwO/yb6p8GeYNH3ons2s2zc5w==","shasum":"93f94d8a3a9b094ec2bcc6e9b011399d27c9d4f2","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.119.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgwRuusGpc4GhbT1h68lE10WHsVPF8wRTYJphHB2n0ZAiAhT0X6scOxasfif/oYGszYGakXpX53e81u95NF2talIQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUgZPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqraw//cCI6HXomvLU/oNeLM3UdJzGoWkP0eBs+Tquo8umisglQVPwR\r\nvwVdn3qtDbDRfwxQYX1MseGinBV9QE3Ku68X7A8Wis4BhE6t2OY6uo+zFi8v\r\no9epcoNdpbzuE0rNmf9gS1O1Li9/EqBW2CNTH7EtYQDWXwQ9FfsAhOlOcPl0\r\np0JI0eVpixic01+ejkY3XdP9/d5Xh+zNm3bNY62RWWAcphURA4J6sT+21EQE\r\nfwf34S9ZvPQK69MJLM4/wHx7Dg0PrPxHn0bQTZsMF0RJlXLgmNBjca0B4crt\r\nP7Dh53+XRpR+XBrDgz5cd4spvzhwCRvKVvaRgCJ5ye6DYhlSWvrem1vvHBBb\r\nuTRA0Wy5Ai2bAEg5JOA4P6VINFLCZMFpUbX3lCNabg9xRhvwQHEFKJsZ1MC3\r\nHqkPCrHrDq5lZ9hh+hGPr9lztTyU5nK7bs85Kj2nJn9E8UmMgRRRxBfOa25N\r\nMSs8NaRfKofQiysjk/s6Z+71lSWBBx2RdaIXTl6yRdtXdlBoreL2DqMSZpDm\r\ncBvvaleRHWCMaWVkDH3f4O5s2Mq7jYPSdSohgPtpwxa0aur4RrPESmOKosRX\r\n8NNrUzUKvuOG1octB2eAQ+2tGW2ByK5wcsM34DEmnAEG0BVeJJUm/uC1Z/Jq\r\nREnPsLdsXwmC2QRSacF7egbqD3yeELpcOkE=\r\n=d31v\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.119_1683097166947_0.7627102804754831"},"_hasShrinkwrap":false},"0.4.0-alpha.120":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.120","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.120+61daf0cb","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.120+61daf0cb","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"61daf0cb27de80a5e728e2e9dad13d729baf476c","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.120","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-Z81PGno9jmSqpRa7xJCUTvjUSPD4e/JHEUJojySKLWCaZFRx72imk0/JF2kaVZA8jeqxor9eVyNoNLkOdaqBsA==","shasum":"200883270ba9c18227bf523b1cc4b9c87f880d25","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.120.tgz","fileCount":15,"unpackedSize":45507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBl46OWAbpq0RWtGwRxhXSb2kbiptHytTO0B5JuA/cApAiEAgBZfuYf6fU4KHOiaVxa6urcOrh/XgEuTJ1V/vvcg0b4="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.120_1683578491678_0.7336606118753752"},"_hasShrinkwrap":false},"0.4.0-alpha.121":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.121","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.121+7dd40617","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.121+7dd40617","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"7dd406170c75801529daf4bebebde81e84a4cb79","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.121","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-gbhLOsoKfix1QfadVbVosQbZUJgOSMVEdoUlH45XlifLzIw1LCg0v5pwV4KkvCGcV+ed6yjHp4pxTqJ6gw7gAg==","shasum":"b37ce2fea443cf576c8b01aee5040a83cfddaede","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.121.tgz","fileCount":15,"unpackedSize":45462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTSESv4YSXuFCYTRTjWgDqBOinV9ZLWkKQO/p96swEJAiAndB3LwV8PJZzAUJJD+JxKKp6ddE2ExlwBaBkheqHVUg=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.121_1683711738770_0.32616210595917816"},"_hasShrinkwrap":false},"0.4.0-alpha.122":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.122","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.122+700d3f89","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.122+700d3f89","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"700d3f89728ce9d35e22519e505d8203a4c9031e","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.122","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-RGUFvRoRFNssbIIkSo/mkinTq/rqUZUdoqDO1ZGAHaaeXApzIa7JrGCohw5XYs9bxInkmkx2r28sXmtsM4x+GQ==","shasum":"a70985b904ad754b8bf09a1792b56decb4ab811d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.122.tgz","fileCount":15,"unpackedSize":45462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWek7YD34h+HYYIoaBP3Li5Z3YMn+xdz0r9+55z+rm5QIhALvfY3izzB4DBQVgBIqY9iNREXja/YnVSRCfgvtbdzpm"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.122_1683793099408_0.45692660775207994"},"_hasShrinkwrap":false},"0.4.0-alpha.123":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.123","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.123+8a3f03eb","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.123+8a3f03eb","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"8a3f03eb0dffcf46635556defdcebe1d329cf428","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.123","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-mHqpTVt6pfcz+V+bSTaD3E8l9Tu+2LWAQ/aoe+OVuqrMb5AIXRtgiD+LnF2aGypyU7zQOVaTvjww9nxz+wNTiw==","shasum":"480aa8b16f1517d69b132238125a707f31b1b7bb","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.123.tgz","fileCount":15,"unpackedSize":45462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMqMzOBUtEWa1Xi5EelomRwSzj9U28+Pn9M59xx4aW9wIhANXOPyU4ndtIN9qCrhFnkC2tuVM7/9lpIu0fOfi/rIoW"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.123_1684314976104_0.42980431700491284"},"_hasShrinkwrap":false},"0.4.0-alpha.124":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.124","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.124+9ee8c107","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.124+9ee8c107","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"9ee8c10743e011cc37c61fd6190b6b6a6d224bca","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.124","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-na8X9WVKB1dRQYsImJHO7T/+/YAQjPJU+yDlqCKqz7Yp7w9wk/dRtrB0kQTm/fZQIE8xlIcB/juwu8ZKbItKKg==","shasum":"119aef4ce33df2ee1511dac5d3f314ca7be6741a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.124.tgz","fileCount":15,"unpackedSize":45462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwPng8FgrbPdKt1RmJaSAoaq9DfIVD9QQhqk7cNDYEmAiAhQb9uevRFjq8vmU5LBgrF20tUPQYNs/QSYM8knffVGA=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.124_1684485413324_0.7144280036808621"},"_hasShrinkwrap":false},"0.4.0-alpha.125":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.125","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.125+25b981b6","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.125+25b981b6","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"25b981b6e23d02409e90dabdccdccc8904d4e357","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.125","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-Ad8aOSeOaLsxr1pCb8XU63TyxWRmTSfWn1tc1+VSbMqI0tpJ/YIzaal0ekbncjVVLNsBO3LcOb2RSj+CjAxoPA==","shasum":"7ffbf0710912d634874a2f67ee92f4dfe4345015","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.125.tgz","fileCount":15,"unpackedSize":45462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxWzqsOGwJR93iWKoyMA5rE2vu/34yg0XRCzhlRVMaKAiBo8ozvQfk9N1ZGvloaseiUR+d9hQW6Lx1Y68BmcVJL4A=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.125_1684506541017_0.7498965479158999"},"_hasShrinkwrap":false},"0.4.0-alpha.126":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.126","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.126+11366e54","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.126+11366e54","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"11366e540421517ce21e8cca8781741fc482be8e","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.126","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-TMeYZCFpyBpNEvDY9JTcAUnz085IYl9Ki4jDP9fcx3lufOi4L2F/QAXQwt4CHh29XNn6u+P2RBeQUjpnZfohrg==","shasum":"3f73396df666cc16e24013e2c35240baaea0dee7","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.126.tgz","fileCount":15,"unpackedSize":45462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNlU2Uty7cI55Cy9zZGOQe8H9uweFeoApTV2N8jSUUeAiEAq8C/3yLhVXN4COgUx80LZRlXo2QqUs7Cy18AKJoU5Ug="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.126_1684513545854_0.7217832469680858"},"_hasShrinkwrap":false},"0.4.0-alpha.127":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.127","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.127+d2d8ee09","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.127+d2d8ee09","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d2d8ee09c4eb6c050660b2bf9973195fd531df18","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.127","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-qFzTXALIHoERu0wgW06wIUIU4PdX+SH7E5O4AQTV3G8akJAIY28wuQlAsOPZYSR4jxZQf5cDy8W8rdS2/doBGQ==","shasum":"5de31674d185b2f72ff4373ec66255ff989efa75","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.127.tgz","fileCount":15,"unpackedSize":45462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkraBdzxKVoNgji8K2ol5tuz2aB6miIwR1+FB2IlwVFgIgVmdTITzg1Iye5qiPj9YaEsdjLBB6tWpfi48RGfL7RgQ="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.127_1684961228941_0.8151345822972964"},"_hasShrinkwrap":false},"0.4.0-alpha.128":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.128","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.128+5075658b","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.128+5075658b","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"5075658b215386c6b974713356206deaaa72bf40","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.128","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-VVmPBXZ6AxDOu8cZoSTDnVe/gBw5aaBwBYxdaVWxdpX04uBE0XEWOtVlVGHnjt00nvVHF1UsrA880SiQPUny1w==","shasum":"aa7940622084c2cbe41bae0c8bf2b9027bd33776","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.128.tgz","fileCount":15,"unpackedSize":45462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUFLKht7KucPE47fkZWYuZYiTESSptMNwgaqVhqu+9yAiEA/KLBAgn2wTyhdCgV/zZRBfdh7LpVUuGvarlLC/7u+J4="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.128_1685222228921_0.06634889756155538"},"_hasShrinkwrap":false},"0.4.0-alpha.129":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.129","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.129+25c76ae6","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.129+25c76ae6","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"25c76ae66f0df1756c0dd1924cf5ae31f3cb98ef","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.129","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-qPHhN7wApYOqJwHwGvYSloQFH2IHPdL6Sy+z5qi8n6Gjr9KsXeleDbUXGCM7IWrwAjpR7MvOTx7WUTXcPhxO6g==","shasum":"0c38b3eab75f97f7d3157905d859486e2a52893f","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.129.tgz","fileCount":15,"unpackedSize":45476,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHUIUpRxJ6wlGZF7EY8AzgdoOZVuWMdNNoIkpo3bH2mZAiEAir/UDkdLVR4zXcPMFzSnbGqAKw9Tnse/KPWejIgmZFc="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.129_1685370459351_0.1883557356087866"},"_hasShrinkwrap":false},"0.4.0-alpha.130":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.130","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.130+bd4932d3","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.130+bd4932d3","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"bd4932d34f7314a6d49097b6460c7570e1ebc7a8","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.130","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-wa6QTbZT8Tvibc0IdQdb6y1VnUdG2Em+Gr/RnPxO3niziijSoVmbDswuo8ixD7KUgNJouHgbbp+Vu72znwOq4A==","shasum":"f4791ac0ee1efb2a8dce7dd43a5b72ae8c12ba89","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.130.tgz","fileCount":18,"unpackedSize":67265,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEsXgv76Dj1EtMFJQKWu+vuP76eWJwt3Zgzc5lEjgBBuAiBDHTw+sM5YlqnS3uyW8F7MRpQV+isjlLiqAmGtZGNzSw=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.130_1685458810063_0.5169715723091557"},"_hasShrinkwrap":false},"0.4.0-alpha.131":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0-alpha.131","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0-alpha.131+d2bc144a","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0-alpha.131+d2bc144a","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d2bc144a7759485547a3f47db34a64e0bf46e2ef","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0-alpha.131","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-s+wK3ar440kzgEYu3Nzuz3ltBYByUnMWfqvA0AGADA00O6ljAJdHvtWJrmOQvO9lxX8cB3FIgEn58iEpo/mjSg==","shasum":"ced7ce935d3732405e399b7338552e99c0e8186e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0-alpha.131.tgz","fileCount":18,"unpackedSize":67763,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGyQ+zFKxA97fLgiFh8YJntGaN4j/E6DaROt460abq2gAiEAxksmiWGeBRFeR3LcZ8U6ez511GUgpiWnP6AzldH9QY8="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0-alpha.131_1685806703306_0.5932073013356269"},"_hasShrinkwrap":false},"0.4.0":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.0","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.0","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.0","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"efc0ddfd23290f99bfde6a3e27c4f1e682630b2e","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.0","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-DxsJLnBXInlDsejIUehGh6jclt4Eh6xSG+ugE0U0xwZcQAVJxDYnC8+qFU1Dw1Os4F4g2rR5zfryYE1ZJ+PQcw==","shasum":"88dd07ac75e5df1a12c256f389d9cc7366597d8a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.0.tgz","fileCount":18,"unpackedSize":67706,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTFiTuRS0lY9axh5jIk+ffCu954KnVItN65n/gkO/HdgIhAKU9GAF8S/H6WpfcooZ356RVuiq5TGCo4GrJHDbHn/FI"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.0_1685814754214_0.0715312600763518"},"_hasShrinkwrap":false},"0.4.1-alpha.0":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.0","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.0+bd3bc595","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.0+bd3bc595","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"bd3bc5958a16835a6a3a293dce6fe4244faa69ea","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.0","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-iPMRUV12ga6bFzwhDoHhU4LbrhLEMsIH3mx5VVlr9x/WxbvN7szT6JP0dRpTsOFnAfhVHyZISps+3PQgKhnXSA==","shasum":"b5c13c1d14fa10e14dd93a6a299a7ffb514087b6","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.0.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9HoZZBYP3fXUBIW6C+YbBb81scHrXm1ly4s9tK/geFAiBECnUCa+7T6irybQaSA09ww63NZS7lFDMvCc9zlIwyVA=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.0_1686135814877_0.9744350786037761"},"_hasShrinkwrap":false},"0.4.1-alpha.1":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.1","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.1+fd190b96","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.1+fd190b96","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"fd190b96106ca4916539d96ff6c4ecef7833f148","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.1","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-bE0cZ5Ev/6s9VJNvcMw3iEJ3kM3I78PP2nx9ogZI0asEVx2RXVOvayfFBQxcEYbKCYJm8VSvYZ+YV3zu407Wzg==","shasum":"f8dc795b4cb959d7c0ad694f43a74afcfaa811bb","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.1.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJ0ZUqFi+sZ5XR8bCAY1gFXafeeARbPbJOAdSMf663mAiEA2d5lmkks4Z8yfUQWnzMrelT96awpSvJR1xFhBry1Cwo="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.1_1686172667172_0.2610830122489094"},"_hasShrinkwrap":false},"0.4.1-alpha.2":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.2","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.2+e0c991f6","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.2+e0c991f6","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"e0c991f63f974bf57cf7d18d8f7c7347ed53b419","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.2","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-jovDKk9+w+CEFR0xMB8Id/sFyCCHHzaF9wCSjgGjtYzscaVCu1XntQcwZWhn/gTZ27MW8E6wHctN/BDaagyCrg==","shasum":"4839f34cc38c9c85ea03925bf0d1c8c0fb66b4d9","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.2.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2Ldgh6eyPqmTIkR87f40U8DsCJzWvjGx3yvoDOO+JwAiA/BKZgCKD75eDlCjpa0SDE0YcQjyYL4/aSiJg72vdH1Q=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.2_1686294074449_0.5200843778801278"},"_hasShrinkwrap":false},"0.4.1-alpha.3":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.3","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.3+83cbfe38","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.3+83cbfe38","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"83cbfe38e788366b616dc244fe34cc49a5a4d331","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.3","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-Qo++/aQJ7QetZA88ljRAgu2MM8b8ht9A5At/hk97C0F0dynW69usBGXW4XRp6CAvLbFUSNe+Zb4p2xHgx+gDjw==","shasum":"b64ab112a53ab40666c554ff2f7414ecba9e38ab","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.3.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwIAXsUMxhAtUI6iodlAgmHCAgi+Sac4qdt/bqveovDAiA7hDR2moNBpN6MyoMgCf919070zRpESmVDn9ZXp+oD3A=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.3_1686397383747_0.566625355969026"},"_hasShrinkwrap":false},"0.4.1-alpha.4":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.4","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.4+38a05780","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.4+38a05780","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"38a0578011896cfcf217713d34f285cd381ad72c","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.4","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-2kSXf9TQIuxkeCNNGKshliRM4YZMOt8SZRwwNfIr6TJiviBTXEfxkR9y/3pQxpNgjrXzgZeWs4MoRziM7FSBZw==","shasum":"7919aec04cd8193d882f1a1619d7d8fb707591c0","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.4.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIpuM4Capn2D0bFU4H1DFVQGAmXktJW4kpxfQE9pr2qwIhAIY/Nq1V88eh3OL1579T1v+CQDbOdsQzL2UygZ0qDgOl"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.4_1686816816654_0.14331883156758218"},"_hasShrinkwrap":false},"0.4.1-alpha.5":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.5","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.5+6c2dda54","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.5+6c2dda54","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"6c2dda544bf5f5d3a972a778c389340da6df97c4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.5","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-/sE0DlCqunr6f5WPJ2HYvJSroZw8EZfkCQ6E0BvxtJ14L2KrKrXDorduzP++plJfqewmV/J7fy+LONG+S+1avw==","shasum":"3781468e29d8949eecabed577d0aa706b5591111","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.5.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICveD5nBg/bIIzaKKr8xtTB1FvyMhRUqCpd53L3C/HsgAiEAq36X1FU7zo0R0BzsjuorurjtGJwifztmEdI1cgx8v4Q="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.5_1688560546812_0.3392011796073553"},"_hasShrinkwrap":false},"0.4.1-alpha.6":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.6","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.6+002be4f5","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.6+002be4f5","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"002be4f578729aed1c8ae337f3d2eeecce9e3725","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.6","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-MLiX1hhTLpZE1eFVsj0lmHkndWOta6CT9S5uG3lr5HtnE8Sb6pk9hser8LIZZVwEKHKKlSOY4R8PcU9bPEHPpA==","shasum":"e57eaf9be0c6e4b7124da31291d3f31dc5c8422e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.6.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcNXJfQr8PifchrpRfJZOs2V/VkzygzuMY8O+5WUiXUQIhAP2FL3VSUAkElsLj3TUcdj0daaN4gBHC3xOxMfgf2AB/"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.6_1688650848133_0.4589166214670992"},"_hasShrinkwrap":false},"0.4.1-alpha.7":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.7","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.7+04a80589","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.7+04a80589","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"04a80589b19725fb493e51e52a7345915b2c7341","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.7","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-xxulEBz8RnKydRA7nja6wNhjfo79yKIVnJ6xbkY+mJopucd0bz+4fuQdnxcBH0Fl4eB3QJCbeZKWLHzI7hXAxA==","shasum":"42a42a3364ea4db49e11746591a2a0b689f3d50a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.7.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGiBRDdE7LWzntzQfqCCMC8NDcLav/ONpWz4hSfPcOYAAiAO4rcvTIYEhMe/Rs66RhbYNFtd8QojLcmTn+vPTrWHIQ=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.7_1689765214066_0.7183325604639652"},"_hasShrinkwrap":false},"0.4.1-alpha.8":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.8","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.8+4a158e64","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.8+4a158e64","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"4a158e64b97595be0733d4277c28c462bd47c908","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.8","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-kfT6oxyas0HJtg3dSc7QzMw703k1ppI/9Tiy/k/focTdLIA509Fkl/sH+7csTeP/n8K9DQ3nyxygaoOS1R4uJA==","shasum":"79d91bea2ff9ca9b8db18e21caa6d86747da32be","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.8.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfsq/AygX7+Ak7scZt5uTsdXOv4dv1lTeWBo+br4QcgAIgBBWPsd9xh03RGkgtXNERVqdsZVwQMgCNJ4pEbUgnAUM="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.8_1689943804762_0.33971634919404536"},"_hasShrinkwrap":false},"0.4.1-alpha.9":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.9","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.9+b078c25c","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.9+b078c25c","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"b078c25cec1110b80f40b4e557613a7400e05cb3","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.9","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-OSzN8rWTtqrAW2+yFFHrZhjBoR1hruc35dBqXhSp+yuO8OGN4HV6w4lBDMN8g+KrACNvjHN8UafgMqBGl6vU5g==","shasum":"3fddc7da77476e1ae8bacc64d74acaeb67c7457d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.9.tgz","fileCount":18,"unpackedSize":67757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV6vwzsoGd5vgKo3BDpAtTTlBRftyViLG48e+Tm8HZmwIhAIkbokjwZnYXZYdPanyhhsXy8SeK9tcZMm31q701jtKV"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.9_1689944630269_0.1899182072003598"},"_hasShrinkwrap":false},"0.4.1-alpha.13":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.13","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.13+8a9ed2d2","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.13+8a9ed2d2","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"8a9ed2d28b5b8cf0224b38444cb068d818607cc1","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.13","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-FANwvHPKqJmDJhN6vIPR/A2Tg4MdM+reieesaHMXocT00CRvQKpZijRaDS2JJVYlM2uwk+x6q7pmbs7zAbiZsg==","shasum":"0f33bffe2cc7bbab5a4c34583d252d2daf2a774b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.13.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEbXXUr9exjo1Wz3GIcTb7rTF6cfij8K92FPe2Aqd7CQIgGUp2ewQ8zKbg/4gWsNzzvjmhS1mXUHlgfhtfdNJT1rM="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.13_1690181415698_0.8480830611452512"},"_hasShrinkwrap":false},"0.4.1-alpha.14":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.14","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.14+fe3bf8b6","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.14+fe3bf8b6","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"fe3bf8b65fbb8b37dfc9ca8079d68f295f8d1640","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.14","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-0lZdtE0DmoWfOakEX6B9QT9FqQrFGGKPG8k5hhh8eVmvk4z78SEItsCAOUkf5REErMKyshvsTWXz9B9xzIIuKQ==","shasum":"c4fe25572b4de8344221caf60962e3d6f2d39b1d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.14.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkxib7Sx4UnKQIyVjGoGr8X3Z0wpDIi7wVrLx2KjHN8AiBoq54iGCDlHJcKp53kN96sKBvapIxUk9gHPLNiGkr9ig=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.14_1690202345714_0.21609251028541543"},"_hasShrinkwrap":false},"0.4.1-alpha.15":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.15","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.15+e6a08293","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.15+e6a08293","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"e6a0829377e162cfac2b04732ae0c06b4f773661","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.15","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-/+nX/m8VH7UV3OBXcWtJeB+ib3mr98cNoDoOQh/tg0goCZpGGdzs50ifEMTxB6GpZBElwOkfFGuaYkJrMWg4AQ==","shasum":"c2c85356ec8e3213accbd5da05426d8677300476","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.15.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaJrDWm5kIuzjOnBr95hrssb6XhcAuvKXlid3GkmNghQIgaAcG1v+lzIIrhuK4nTQEhL7ZgMsxfvMD9k6AIMo6tXk="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.15_1690203408218_0.9214639042015282"},"_hasShrinkwrap":false},"0.4.1-alpha.16":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.16","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.16+f26d5fd2","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.16+f26d5fd2","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"f26d5fd2a7813e15354a442daa6bf6f8b4d56b99","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.16","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-7+wzhf2sKyh2aJFBbgAYNQdUmg5qlBsisHQhsaLPhdkaVZUSZ6aDqZTpN8NthB6/UeqKEdNPD6QLSXZ1Xvtulw==","shasum":"c5ff5cc9fe8f5be6f892831b54933285cd093a37","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.16.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGxHg6g9j4G60RfU4A5Zd6XBG+A2uO2D3uVtpYeLCQ9wIgFx6aAcTUUWJVAryDl4I6BPZsmDFtO/arHN6UR47uzQ0="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.16_1690216894489_0.16766531280011088"},"_hasShrinkwrap":false},"0.4.1-alpha.17":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.17","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.17+c6f03e49","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.17+c6f03e49","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"c6f03e49d79a33b1c4b459cef11add93dee051d0","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.17","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-h+2Ie8kwndDiVBzpqfHHlkEeF4gYVRw+I2YvGNZUq5Wa9D0ThcpNZhHSy5D4DIoSPwBRcU8j/vVAh3azFL+g6w==","shasum":"fd41b07b07eead39abafab3ef72fc228876eab3b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.17.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHgh9ZVQboSlVVEslHEDpdZUeB5jJ1WP0DF+qAWXkJjQIhAMSh6L0jA313JKImP3uH8xCOCNKJdNOBz+nGd7pAAN6P"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.17_1690276666891_0.5343637185827919"},"_hasShrinkwrap":false},"0.4.1-alpha.18":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.18","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.18+9e69cf44","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.18+9e69cf44","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"9e69cf441a75bf7a3c5556cf59e730ee3fce8c28","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.18","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-YyFkM4nRRLhtakI5ecafYsb8WooiKcHH3O+n7ReM/ecr82P6dX5Gz5mhjwMruFeMuS3BqgGkTOromOPpUATkZw==","shasum":"aeb22270a07ffa61877d07d021e902ec9f474e8c","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.18.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDCs3gqxQxCwjnpVpdYWjQAAOrnoC0gycxlRJ2lOLLw/AiBqn1H2WqXrx4KTXInkx0GtgsXTMAG4ukt8zD/a2mn56g=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.18_1690281498434_0.16369197069150965"},"_hasShrinkwrap":false},"0.4.1-alpha.19":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.19","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.19+67954262","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.19+67954262","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"67954262b9323ce232df5c809597542e836f9205","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.19","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-WON+ZUc8MZQyZfy7LQW75ihlV4h3zlFQeU7pmxj5IZZaRrxFpsp9QJxWr8Xxiz2LYrNrHgXFCIfE4obiemQXiA==","shasum":"45210f6dd841de78c57263e36ce56240f93b3bcc","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.19.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDP2BDELz8HaKY3x5XBX0+CJU8tnrulU2A73gSOG6Xs9AiAyCAIUnMOWmeTDu+YdXYQ1w8/BLiMEd4npZCDWKtH2eg=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.19_1690286658911_0.7115936477275837"},"_hasShrinkwrap":false},"0.4.1-alpha.20":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.20","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.20+d895c78e","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.20+d895c78e","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d895c78e0e02954a95ad1fd7e2251ee9a02445dc","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.20","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-ypJvIqiC16+uXbuiciJ1jiGulnceMx00TZwiZrMA/flhMeGCWc9tBxZuNogdD0esbn7SFzVVmwdSt+5nvuPnGg==","shasum":"be76de7bc335c2caa4d05c4c50904c0caa43d7d7","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.20.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHD2MdSlMGRA3vmfJSMWYd6kL0DUMs8mAyqBSZLNZe2DAiEAj8WsYUJb0WGGDG6CidVMKBDFDalmx2kxssU4ph8p+os="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.20_1690388708476_0.9816064708148518"},"_hasShrinkwrap":false},"0.4.1-alpha.21":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.21","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.21+aaa13dc7","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.21+aaa13dc7","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"aaa13dc77d6d5133cd02e768e4173462fa65064a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.21","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-mazYd4go5PsLWwgBDXOHnP3kAl77/CsEx0/WWsnkGigT9LAmnYCZuPQVxwHiprRAgZb+if5ipu1GoscMZ+/RmQ==","shasum":"002353c8131bd7d2df4ce1eafde9a7a4e9216d78","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.21.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB18ZH6YTwiDQnWcD2eB+pXGEnrLQ+FTt4t7jhhHyIO0AiAzoJGllhOIbAVHH56YoiTtpfUTc7W5/4eJefgiqhzAmg=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.21_1690954958260_0.3233158499713207"},"_hasShrinkwrap":false},"0.4.1-alpha.22":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.22","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.22+e448a2a5","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.22+e448a2a5","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"e448a2a58dddff2cdf80c4549ea2d842a54b43d1","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.22","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-HDc7xlIQxv+EmUY3N8MMKoMi4DlsAN+AaIiu5wbYP4HSh7ENpxir/b2uDwR7a3EklGF8H/M83VPcS9847io5vA==","shasum":"bceff1a936e8227eca44090b0c1475582dcb041b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.22.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9EKU0HlpxeZim2O3eq8iR0xKjzqTE/LQdmI/rVWCD+wIhAN9i0LQiqSCbALEfCXbN/DI3AwRFcFHJrMb6OXRQrcuI"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.22_1691155538654_0.500665524610105"},"_hasShrinkwrap":false},"0.4.1-alpha.23":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.23","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.23+d453728d","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.23+d453728d","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d453728d41599816895a13c04bbcb751ea8f159d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.23","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-YInfaDG40ApHGHYgSKXBgL2rVdKpgOLJxtrhNNrIgTv37lska+5IedZyL7OLaMjbFrsmVN+j3jWMyAQIgLMx0g==","shasum":"dc912307cccc781d3ac2bcb6983f5868f402854e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.23.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICPjc3faxKn2zHIo0Omr2d0y1rM6mWS3LclO4fqEdLP+AiALAdxcGjmsTZNRA+OQCUGxSyakk6gKlcvGTKVYBm1/vg=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.23_1691604678297_0.2876917285931715"},"_hasShrinkwrap":false},"0.4.1-alpha.24":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.24","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.24+4856b8f6","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.24+4856b8f6","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"4856b8f6632a4d10faeb1b156397226b64e3b8b6","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.24","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-5gwZ8QV2YdkB3T+2hpZyH2erHoEw3ITVH9B+70VW/gPtFO+8rBmOF31PxromWpm2mQwLLDn0IpsyP2LrPI8qLg==","shasum":"f358e7744d08b533e1b9633a6a2b5825354c81ab","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.24.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGqWowUtqCNYZzNXJKkt0hhpoCy0HJ2+E1+iVBbfWZP+AiEA5MKLlYqTJMnNsS+tkxEZhA0iq0KU3SkC3C1Kay7OiGI="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.24_1691607849524_0.7176578759968604"},"_hasShrinkwrap":false},"0.4.1-alpha.25":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.25","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.25+6a9e0adc","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.25+6a9e0adc","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"6a9e0adc34463f8307c808c0cd5182dae8441e6f","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.25","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-H06NcGA+zptbwoDAnhlm/qy/L3DRip6utRgnR90H+RLp4qOSrtiwoQH69lbu32A3qtxLWr+JFmRoteD0PR3mNg==","shasum":"e16027d6870c99b388c9f3ce2ec79a173207801e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.25.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNEuwH8HBU5hQo0qtEjEiUDhzdgv4IUMYfjElukCrMhAiEAnx8PENBSqv2nOtg7Yy+u71/ub3D2qqIFiLacEGrP/JE="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.25_1692169639680_0.11792227107467967"},"_hasShrinkwrap":false},"0.4.1-alpha.26":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.26","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.26+0b9fb53d","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.26+0b9fb53d","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"0b9fb53d5507db87ce2c9e169f0c05e26f29338a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.26","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-SuKhStFyZYImhWoHVyevIS6O+o9ztSgHyCC57y5SX5AzgLNX2b+N0+TWzmMBCoT84in7JstwY8ycQs5l7iopfg==","shasum":"6903c22a50eb0c0b8573c2f3eb5e5b75d5e80147","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.26.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGY3Jr54inQ42e29Yub+dS+TDzyL3TMXfB/AgO2k4ZU5AiBcAMlJkZ79dS1jgJKRPB0aG+h7e/aML9bbwA2jUAQr6g=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.26_1692169801399_0.15395001456764645"},"_hasShrinkwrap":false},"0.4.1-alpha.27":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.27","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.27+cb6147c7","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.27+cb6147c7","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"cb6147c7f7caf85c462ebf984bfa671de9b7aec1","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.27","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-+foOfS9r/31mmzN3V428PRONcwWvY4BUUgKR2+vCs985VzGAX4cYbD7qMAagBUT0OpVPDBnBu/oH4n61kj/nDA==","shasum":"ed1c76b1224860f2a6fa03a35805f44c35139efa","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.27.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDiFuq2X7IAo6t75LjsYGOX2trVNukwWpRydBAyn7gUaAiEAgjiPmDy2RA6aDttyEL2bldpFX7jUHjJbSv3+T3bg6cg="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.27_1692171007882_0.6076581209732232"},"_hasShrinkwrap":false},"0.4.1-alpha.28":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.28","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.28+0f528ba1","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.28+0f528ba1","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"0f528ba14c00ac4d30f1de015965d534840a620b","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.28","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-4YJ/TTxC40c4zirCwqmg7h/iNOJTzFMTFDl+F3xHcj0HyOWMfE+8SZ5ekRuxYIgpakzwZc4fqiMrr4RrNcCB+w==","shasum":"604a0240e8ee0ca3bcfffd9e099e199ddf037842","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.28.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIADcU0nYK2HkvJmA+zK3Gij0KCxkTBmI8XHBzzVl9NC2AiEAtrIZhgJM3pFgpchUCfTGbG3A7+ua4uNtRDnBAAULoXI="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.28_1692172268843_0.7650098048636633"},"_hasShrinkwrap":false},"0.4.1-alpha.29":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.29","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.29+8f2d593b","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.29+8f2d593b","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"8f2d593bcda0bb2d7bea25ad06b9e37784961997","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.29","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-R1UWj/adNeqjtmdB92WnJzNF9idjssHdieywKfoPqcxSkbggKOVX0PN3PmxZRzy6ByXLkfU+kk8LhmCF12u7/w==","shasum":"f7ea454441934dea2d2baaa242a27220f5fd1689","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.29.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDeXanwyMEGjYgigU5WXupZM4YtBsIZ+B68Eg4sU6rGAiEAs+2HT6rP3Juq0L+csouGLDSiktG8hWaxzxawHR0dxvc="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.29_1692312302899_0.41163743888787874"},"_hasShrinkwrap":false},"0.4.1-alpha.30":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.30","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.30+9377378b","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.30+9377378b","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"9377378b0124bf2f593342dba95a13ea5d8944c8","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.30","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-9yQV6FdRtLp4y//Z5WaSjqUY4laF4TEj2U3WweDV3pRcWA9eorLxlnWGyDNazupXshIximtqiugX1Kitu5+wxA==","shasum":"f0d34fea2fd7d0016e588926adc2c8c76ed6bf0e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.30.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkDIrRNgwa8v7H+YUTEOMgxrjWIPgj/t8xZSmhSurmNAiEAoUK/Jmkw2N6UpnQqpgM6HBg9JhcstPJMhQKBK8KSes4="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.30_1692357227427_0.8323758916464634"},"_hasShrinkwrap":false},"0.4.1-alpha.31":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.31","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.31+93276deb","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.31+93276deb","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"93276debeff1e56c9803e7700875c4254a48236b","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.31","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-lZaNttomBNjFSZE6sFITltOYt/yF8puy0Sv2Iaf6sWIE5qb+Hg62IqVKO64SwoZjqqM+EKGaWi5ziox2qxdA8g==","shasum":"df867b56998fef40b3985f593e46a22a31972de8","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.31.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBeUbps1mW/ie/5pRPuKqZq5IB83ahCzDF28NmxQsSEAIhAL8KUgUz3jCcgo74FVs9Vu0N8k6HM08OqCBcmc940S12"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.31_1692367426823_0.9800270552298853"},"_hasShrinkwrap":false},"0.4.1-alpha.32":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.32","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.32+8d2057f3","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.32+8d2057f3","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"8d2057f3fe6f3ba236ba5a811b57a7256eae92bf","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.32","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-jkOqi5PZMf6BCQD/wzzMXr8DXGfhlz5gquEVhk6UvIHqTKpniPPWJWovI/9yRGxpWZHqXIqc/ylc8R9gsQXgiQ==","shasum":"4b36aba72ee5e97089ef6fb1c3090c376bbe48ba","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.32.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFSsZj+JrB599aY/1PdM+3YM0tAV0q1g/F46G2FtUJvQIhAKX75Mi7aL60WEfLXuB3+eriYQqNRjnzG26vzpayuNPc"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.32_1692950896095_0.3101156243347787"},"_hasShrinkwrap":false},"0.4.1-alpha.33":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.33","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.33+80c37b30","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.33+80c37b30","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"80c37b30eb9ac3b438288e14c252f79f619dd12f","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.33","_nodeVersion":"16.20.1","_npmVersion":"lerna/6.6.1/node@v16.20.1+x64 (linux)","dist":{"integrity":"sha512-7vTtEEJ2cFfb5lpvHN30kfYgCuXX5HMM2Hmmy56dBaBZ0T3rBFKqnrA2QEdQTEbSOzEjZK5g/Y9cqgesceBJ4w==","shasum":"d0f4c5f7f9c617d207b623d99dd389424fb91319","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.33.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5Nl8A7jbBGxq8H2GQZrvo4OpLRI0BIMmu++MigNKRjAiAenVsAS4/pcYeVxIVWD3OALry+3oidOerEv8oMmLKq3w=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.33_1693231348839_0.01749696811567003"},"_hasShrinkwrap":false},"0.4.1-alpha.34":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.34","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.34+34fdc3f4","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.34+34fdc3f4","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"34fdc3f41d9f1463eb6f40d79b18d093922dc882","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.34","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-BpYKx9mExFwBa12D7Hyx/AVAJpju+stDEynZ97g3eMab9cYdSM/2h9o356YrrNxoE3GA1UDMVQfB1ACVx05ObQ==","shasum":"a2668bf9391fa5bfb8e9421a9f613b7c9f1fef32","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.34.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhMxNz8tiBL8q7kGNVyOV8yqcZn5ROMjshfGJdAE1TbQIgEnuXabkit0MfqEo2hM5tmP8oIQwCRoMmVvoUt10gn1Q="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.34_1693250494629_0.12730020899708294"},"_hasShrinkwrap":false},"0.4.1":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"c0d9304790e3fdee5dfb8791c73f4d18b788b9bb","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-IsQc21FCdVd7tgrBBKseO6Qa2uEELtckqJxymyugSDe7U5ypUtLiFicoFAwPtMh4jUz77rHKhdmDbEAqggm9DQ==","shasum":"1637a868592dc7941fddfc7dca62158ac520ca59","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1.tgz","fileCount":18,"unpackedSize":67706,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVY/mIEWk1fYgyu6uO9+fvujKucbYISd85WPwWVnxkVwIhAKgRx5ZmCSFyO0FSnAQYg+eTrQ+6G0fBqqivCzwrapbQ"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1_1693255547824_0.18494230014139568"},"_hasShrinkwrap":false},"0.4.1-alpha.36":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.36","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.36+de6a735a","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.36+de6a735a","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"de6a735a900b6d7444b17d79e63acaca19cb812a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.36","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-q6f++0+YtcijKAaB8FaZXxiVGWiTXOIlT9KHgJ3KnNveAynfqQ6Gu+g5t54F7RIlAHCW7A8s1a8IWqc6WZrNXw==","shasum":"7a15d0f62abd462482e71bb439f621abde88e0c3","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.36.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7aI9tKH1ZXQU6q5XJQAwEgJOq8dH5Mn9sdf5kA9WNrAiA48aEezeSsg7tPYfOSNJUAKVHgPRkGUL7PH2KVOS5tnw=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.36_1693382964488_0.9538520112928126"},"_hasShrinkwrap":false},"0.4.1-alpha.37":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.37","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.37+d2f8851a","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.37+d2f8851a","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d2f8851ad34074c837bd095ad46207dafcd4de9d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.37","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-caIZX2NIOosx+j8kUOs5+myTKVoP2rTTGIgSJls/fJA9u41nnenYinlzFzoK+yV2ozpisXfvvcoVenDsdzIo1g==","shasum":"0bfd648a2d5265b6a6aea31d0a4bc8712c6d95d9","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.37.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGRCyV7knqRHnLu9NjqblYOVsMoUzEuZTGNHFg7Wg9mtAiA7G7s8DKP9v0Yr5Xgo8oBbcrL1Kxp59uCpIoj9D7YCJw=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.37_1694122637504_0.4252772800522262"},"_hasShrinkwrap":false},"0.4.1-alpha.38":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.38","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.38+d299f551","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.38+d299f551","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d299f55113cb4c59273ae9fbbb8773b6f0009192","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.38","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-RldZ4qzkcpcrvfgb89hRpC8rF8JcOzYpNdXtj2jjebDTtSNTsn2iuwH+4f9SBsXtt93G5TREnfVpTQ75FY7Fjg==","shasum":"0a4760c706076739019f9a5cf8e31c0e22341c25","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.38.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA1snFey3x41IIyMbznSYLlGNghVTMZg4/auLcW5sc4BAiB1aTYCkez9g3r6ZUzm/y1kF9ni8FzSlQhbqBu9loYhwg=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.38_1695031174557_0.010050663429572948"},"_hasShrinkwrap":false},"0.4.1-alpha.39":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.39","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.39+fd7c090f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.39+fd7c090f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"fd7c090fa8c6eec36beb6bf40b94dd80fced21be","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.39","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-5gKHtoKuO3g7nKTfWsKHAobZb70T+HMRtjoqlNaBWDRMIXjY5IPcRJCj1WSFVVdrBPfWLrfEW3sOI4oHS/cm1w==","shasum":"421e287667389c28a8da7bad9749ad1e1ef82b1e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.39.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBDH1jIU7zihnqDX9CDpatYJYWFAMnhgWmY9RH2xFX6AiBO2uxMVUf6/TT9BscPHe3T+tmjglghxj6X3WOnvqvrKQ=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.39_1695051562647_0.8255729797186413"},"_hasShrinkwrap":false},"0.4.1-alpha.40":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.40","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.40+4d1463ba","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.40+4d1463ba","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"4d1463baa29a97d0b9eb08edaab759242fc45881","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.40","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-ml7qcKHmELqtKU8FjurTeRTdjdXs9azGhUmtpXFQvd3xCbc5r/7NnwqJ+9y11526YCCpooaOnITw6BMz2oy/Tg==","shasum":"2c2ef66e95c063c4e8b7b7eedd27bb22bd983099","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.40.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDCc1EvGdUy/ebRjOZrYMv5ZO1G4mApkkXCSjdl4o4KZAiANaFt2PSbrLAyf+c6MyAaDvxm3TwU5GLyUl1Ew/BxFUw=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.40_1695055742450_0.7406442296974589"},"_hasShrinkwrap":false},"0.4.1-alpha.41":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.41","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.41+9ee2ce7f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.41+9ee2ce7f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"9ee2ce7f0913510fc5b36aef1b7eeffb259b4aed","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.41","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-RcWq7SXFBiPrLf03BubjYlOt7ScIUu9IpBiG4UPJrImsX8RjrG+VqipXto9fialjYnM71twrWS7WJvzHo/LQng==","shasum":"dc70fe3150c6e78a9af5b709f88c0617b2a2f31d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.41.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUO6+5dCymIrGAyPddFY4H1PRo19O0GoLjhy3giYPtvgIhAO3uJp8uUgh733mrg3hoEKqfl3pwbhQJjn1ovuWQkN6n"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.41_1695119771163_0.3404296916881502"},"_hasShrinkwrap":false},"0.4.1-alpha.42":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.42","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.42+11050afc","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.42+11050afc","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"11050afc7965adfa9b00107ba34abfbe3afaf874","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.42","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-EbVV1IhcA8hL45PNCtBN5uXnB0IbIpekBM12U2mnCEjif4idPLqNrHexCpBsoX2kBNrxMvT6mLln1j9jN/AM+w==","shasum":"82fe6052f0c82d4915d4464208cbd4b95d0be1c5","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.42.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcbYgegLQY+CfJrKiBzlQ1j8o+/Ou8OLRFSu3Fe7lfhQIgeU0pDe8LW7L3/0PxKxiNTY0wXaEyV2yVOL9q8CfcW6w="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.42_1695123220857_0.2318838467536406"},"_hasShrinkwrap":false},"0.4.1-alpha.44":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.44","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.44+9d789fa4","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.44+9d789fa4","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"9d789fa4e9d159312872f45089d73609eb3d6835","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.44","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-6JyBYikYisw4Dkv5HujkXj4cZ1sS3QaY/IR3akPaVqro7DErP3R+iBcjMPMBqC2H+5nRNQTuodLKQN0fMYXRXA==","shasum":"aad0287ff7736f520086e6a4e82711f7d19ee71b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.44.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFS+tMSerxiC9H/K6PhDelrJ/A4ZQLmy68MvMDrBkAKXAiEAmzcXxBDXBvaSS0/Lm0+Caj1D2qLyTmHiBI7/0rDdE4M="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.44_1695469207737_0.23456403508207702"},"_hasShrinkwrap":false},"0.4.1-alpha.45":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.45","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.45+dd75be88","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.45+dd75be88","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"dd75be88c4e257b6ca76868ceaeb3a8b7d67c185","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.45","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-RvKufklMinR7cYdZFyTfODDpDDbNInxPusd8QQJgqWJJloLaUJw9S+liNXFtGvXlklh4MfFiVHzwQaL2nvrkFQ==","shasum":"2f94602f2e613032765e6aec7ac2eca406601372","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.45.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGEJyXerHJGKj3xTHQ1hyQvkylpBCCcweXbLkvuuJCPfAiEAugd1VcMfKBAKlBoV0ZXs7Xw6ZT7OLLuBGxLxSTjR4ng="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.45_1695745758740_0.8744427270753543"},"_hasShrinkwrap":false},"0.4.1-alpha.46":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.46","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.46+4071dc97","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.46+4071dc97","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"4071dc97b8ca779e6def3711a538ae821e1e513c","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.46","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-ftwhhHEckZgexa9ep2AmXrVmVQEWGjA5sXFhaMReVFdRIWKgpL7O/8wBXkwcWIQ+WuDKIkYR5dm9OYhmcv9cpw==","shasum":"6c2a625aac1c69676b2ae7f94cbb48d9f4ef3cd2","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.46.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTstCQStC//rWd+uw8mIf7jzxQwhQIO6Q8ODy+yFAn1gIhAPHqVKqrqpea/2YOW7wyGtkVr5ByqO2f8FOaMaPtgJYP"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.46_1695908394064_0.39328762050135757"},"_hasShrinkwrap":false},"0.4.1-alpha.47":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.47","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.47+c2bb2a52","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.47+c2bb2a52","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"c2bb2a52f10add35de883c9a27716db01b9028df","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.47","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-cEJN19EAF94D/ZOCwBqRzLawA+s1aMaS18OVcirarEtLkI2PYKQGTBgR2BIYhQ7yd/99gOIQOf8QMJU4jtDt/w==","shasum":"175b602458a115ab97c201681cf36b0569c5ab96","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.47.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1zkiZcFqDQjdR4gujNQMGpTfDJyLmVtETVhn2Nf+JmAiEAxkgqWwZ9/jflwu+MWL/mEqJnigIAL6ImxYtbfN+YeHg="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.47_1695979853251_0.8960222956134467"},"_hasShrinkwrap":false},"0.4.1-alpha.48":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.48","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.48+91a9434e","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.48+91a9434e","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"91a9434efd53ccbaf80f5613cd908913ad3b806b","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.48","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-yjXFEKrhQlWJcpenl6l3HirY+sv916hB3M/TxzPRiwpho4NUmw8hxKQc9i7vX6EuwntmYk/eJtETinVpXJMyQA==","shasum":"23c155a429fcf7b3f24e4a28c19996eee13b15bf","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.48.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDinURtjkWwVDH2DC9Ni7ZFKU40mV9lLhH22w47xyHzNwIgCwEKwlatkniv55kMK26SLTJC03hiUo9TJdIEABvDLYI="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.48_1695980153500_0.44126236269697006"},"_hasShrinkwrap":false},"0.4.1-alpha.49":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.49","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.49+296955b3","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.49+296955b3","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"296955b3a648416ac6b502da05a10001920af222","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.49","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-nqbZsyow0LPrNtNX/8XXHV6wIsYJUj/RTyyUqiHdvW5XSfJ1GXZm/fxr2M8x2VpnTfyxerq4LDYjYKspqh++UQ==","shasum":"b306dcc066176f166b00b0676c109d1307b2f080","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.49.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgbmzX8J+El11y9fW4KA3ZrF1X64xbshQklm/wi0ikIwIhAIOa1V/gRoqKKNXKzJRL1glYzuoXKPcISQwIVQCP97c1"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.49_1695981528480_0.39524441857743753"},"_hasShrinkwrap":false},"0.4.2":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.2","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.2","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.2","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"a0458febe4902e823c81b8e394a39b6bdbff31bc","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.2","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-Om05yJv6gwzvQRIKvjOIRs2n8fuGt7b77vf9o2TH1vGmmaPW5zDkRPCl7EoMQD5k9yQrcUKubfytJUxHH+tnxw==","shasum":"4e3f84bcc5c4051eb2927e2e84fb14c6d6c133a3","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.2.tgz","fileCount":18,"unpackedSize":67706,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUoTjTLbhTYEAomEdR1+p6SMF2X9hXhEqXTz5XTt3fuAiEAk492ifsFrPypStZCD0XnvrWwYrvVhUAQpeg5IrCrdT8="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.2_1696513015141_0.060243604927678884"},"_hasShrinkwrap":false},"0.4.1-alpha.51":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.51","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.51+a1942f8a","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.51+a1942f8a","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"a1942f8a8dffb11558dcbb900cbeb052e7d0227e","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.51","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-5j9Ud7WxV0IclRBm2/nvqaWmVy0uM7A3utDH1dGDE5YWz701Wg7N/J3xyrNP3pklQjS4QxEz0V5O9o1YQDknOA==","shasum":"87a6f0e7ab561c70268191d9472d3e2e420d311e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.51.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAM/sfMFWL36ubq8GfLnzsevg2Szz5R7TnR5oJOC5OBQAiEAsGHjRVNOyByBtnhmnOyKo2qF0ZHm5+M6WKoF4ONS+jg="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.51_1696962834775_0.3408042032827059"},"_hasShrinkwrap":false},"0.4.1-alpha.52":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.52","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.52+32ef8c5a","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.52+32ef8c5a","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"32ef8c5a002c2cfe209c72e01f95b43337922fc6","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.52","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-ZcrLv2/RmK9BDgzo/DB87p6zYALJZxJzfI/8LVaJ38fvQDFpL9TdAWJT3jf4+0TVnshWzZx2AK3X/tFtEYNGrg==","shasum":"30d6d4c5594553dd73a068d25dd6af74bea52bf3","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.52.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxdS0b9ZEtcii9XogDZMOWpIYEeNrV0Fis84rlufhXMAIgXB2cVlkA7IPZM1PM6f1d+BSo/owTSxjJyBRE8gHZsio="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.52_1697103038977_0.19990857859376487"},"_hasShrinkwrap":false},"0.4.1-alpha.53":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.53","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.53+7720b305","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.53+7720b305","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"7720b30525393b502756ea488f6afb01de0b3a63","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.53","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-ABheWUdIZw7QmN0i4Mka6UzM4wl2wGhKix+I2l6f2GVMdu1e9Oi/3VfVnzGqY0dOlodKDlxmin0NAZEHlAomtQ==","shasum":"1b723b161b117b8c69a2878bc24b28786235490b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.53.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAe4Lu00/Su+se3eAT8Rbty+32rdWcooDz8GlXzwKjI/AiBtVZIhXV6lQ0zJhWDS2X/fI+yw0GNqivFrKoofQvOOQA=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.53_1697103186325_0.4986059040904387"},"_hasShrinkwrap":false},"0.4.1-alpha.54":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.54","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.54+2ab65301","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.54+2ab65301","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"2ab6530148da117a02dccf083378b8a6647c3a05","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.54","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-golb9fWUn4mMaHc+GHEfB1ztaWnO3vXMRVn8YqLwx/RlOi//m54+JpX22mpRemQvDPH/xH3oSGELNJcjray3Jg==","shasum":"ae7dd8fd155c7cc624fa3cb757d17d52f3dbd6f4","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.54.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQRK329YrXuTusy5ElgtLUUt74I/ZmtTiUMoas2Tc9DwIgDael/wN+diPv8+89IdJfqx1T/1jkxsWR/OgeoqRLVxk="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.54_1697103241044_0.7327085456686675"},"_hasShrinkwrap":false},"0.4.1-alpha.55":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.55","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.55+5cac2bea","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.55+5cac2bea","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"5cac2bea656ba130d5d4cfa2bde4b06d9df92f0f","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.55","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-0loYL4mBV8zclcTvLuVnDlx4Nnh37FtLB3by0M42YyuWocvYjHKEbt34NgG7wEWDCIaomBPpNgU8kOCjJW2dxA==","shasum":"fd0563f05f3f890ccc8edc9096299f72e6dcaf1a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.55.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBTxDipLB6wtyLc+FH9TBs/bdNTlEi3q0h8xWKKHbFtvAiEA9AXvlS9n5GCLSuezZrBwJoXag69bcmGVJqKuZvVHLnM="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.55_1697103524833_0.9519340140052013"},"_hasShrinkwrap":false},"0.4.1-alpha.56":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.4.1-alpha.56","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.4.1-alpha.56+b2ba7c71","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.4.1-alpha.56+b2ba7c71","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"b2ba7c7197139e780cbb95eed77dc0a2ad3b3210","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.4.1-alpha.56","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.1/node@v16.20.2+x64 (linux)","dist":{"integrity":"sha512-o55HGwJW2elEzaudYR+uwMeWRKwWEn9uO7MU+q7Z3G2nc4MzYSqJTh8N/3fHFBUhC8N52R0dhAZroV+1+DqD9Q==","shasum":"b3afb3d4fe88a35ae94cd1fcd0dfe1153eac50df","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.4.1-alpha.56.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDe2XAzxsjJ7aMg3ZAbT0Yg3XZVgQVS5lsOaz1YuS79ngIgYQag4qJrrxipVke84j4VkbyNHJ6TDkvwxzJaUqZUrLo="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.4.1-alpha.56_1697720370586_0.5901381647330282"},"_hasShrinkwrap":false},"0.5.0-alpha.57":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.57","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.57+2f5d1391","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.57+2f5d1391","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"2f5d1391b3abb159ac31d632188c0b564c60ee6d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.57","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-JI79Cl/msvOkDkJao7fQjt6pAKU8g7gJlmpe8ohz8qR84zUXJeicUckp50vtfLzkwVCvHNPI/oCA1y93wbST4w==","shasum":"c70c07f8cec2924661cc3eca1a30f1ff30095b20","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.57.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZCCUifOBjazyBSeGdTaOBFRzIW2MaeKxEfOFsxEey2wIgOqeLnp5ElzRKmF07z5VRIzm5ZuHaKyJC8wQN2ESz+sM="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.57_1698700151045_0.5026308232098486"},"_hasShrinkwrap":false},"0.5.0-alpha.58":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.58","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.58+17854790","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.58+17854790","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"178547906b092bc9f102a37cd99a139ffb4b907d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.58","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-So9Cw3y1W5+JiuouQPKZZ3Q5FU9NT6rKAtBt2hiKqUjsXSCnRyEYk9z1UxtUwPirmUdCa4eg3yg+6UEL6mUhPw==","shasum":"0a25606cc730594df974ac6773219c9ae1c1bbb6","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.58.tgz","fileCount":18,"unpackedSize":67760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZcw9to/vIhF//x3bah2iyiq7M8P7fPGjMHAC+lDsdPAiEA4l+9ETI49EhVZG92HB8TTZWPNqTEkxmBMcc9tSczfh4="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.58_1698783644669_0.23977921893416188"},"_hasShrinkwrap":false},"0.5.0-alpha.59":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.59","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.59+ec3182d9","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.59+ec3182d9","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"ec3182d9934319b761649edb4c80ede2dd46dbd4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.59","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-unxP3LaFZwFmtGzQioPjyOYNuc2FPBIRbF6IXbNIWBpMGqvDD1fVJgRBg0VWW6SF9IYJSE+Dk1EbHuVDcwmYlA==","shasum":"07a4a3ad0aaddfe39157f1ffe3cd943b15dd99cc","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.59.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyLVMZBT7eaIWc1OylGheITlMjwoJJ2u1XluFBY2f8nAiEAu3D4lUaoBL9UyRVr9DaY2BLjyD/++JcLj78ggCRGhXo="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.59_1699009992766_0.6158681322363802"},"_hasShrinkwrap":false},"0.5.0-alpha.60":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.60","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.60+0865ea52","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.60+0865ea52","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"0865ea52fb99103fba0cc71cb118f0eb3fb909e4","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.60","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-VtjE7mpgFiuyYtnVI/q2KWAtpfqJ1mz8EFM2B73kK/NYINiZJzCS0YwStcu5SHGOs1KOhlGjdgmWnKGYAuACJA==","shasum":"e164ec955ae761f871c538d6c855be6c2d9aadf9","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.60.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjfD+zzhRLq4iYaOqsXVeV76DKq01FFxuT+A0r3yjLugIhANo7G0+ThkdbkoX6vs7/GgRFGwI/qNCkV1cG/yeNrxXX"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.60_1699108631396_0.08655917784752987"},"_hasShrinkwrap":false},"0.5.0-alpha.61":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.61","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.61+86e845e8","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.61+86e845e8","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"86e845e88ef4b9eb4dcd4132f69b357fbb19ec37","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.61","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-Zq2kRKiZtdUX/i6NNbR5GbaitsumE/JzkHh1dajXncltewzKxKX/y1g05qT3J2763578wD0syiOiU7Fgi7sHGg==","shasum":"924a010b844cb86e09b1ceb0e1ef8c09f5e23d14","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.61.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA5wUcerKQK9wHJrHdEG+Kqi4OsyOfYEN0T12AePcoXVAiEA5LCPk6BGFSprj5os2yQA+qEo3odXOSDDWbwY/WH8QUU="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.61_1699359954717_0.007514315720739129"},"_hasShrinkwrap":false},"0.5.0-alpha.62":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.62","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.62+915d73ef","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.62+915d73ef","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"915d73efd6a0cf813417b4aa32e3e56178e6207c","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.62","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-w7r18ZUxxCripo2SXQwrDiVkOh8uNyO39Nr3NTp/kgbXSOvgZTAE0iP5nl4Muh+exqFhQfnO7c6v+Kyx2TPvpg==","shasum":"61e11bd4bdbc875daf925d755fa413544b84e7ff","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.62.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFSLRmmp0IELF/gVIl52Q6NT1gvCI3qB/kLfXALCkYJAiEA2DbN7QYmZxrXnK+abO8pxEacFR8z4Jk/85wh2c+NT9I="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.62_1699388529006_0.20014539907376205"},"_hasShrinkwrap":false},"0.5.0-alpha.63":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.63","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.63+8157a3b2","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.63+8157a3b2","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"8157a3b277adfc00aaed30008eaf0b0f4a95c709","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.63","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-/0MJxwgu9JcX3zddX1NTuWdvCVIjnUPWG4RmLngRFljBo5W1tUUhfVaG8Pdn6M1eaTOovEhjOGwKXGgVaxu4Vw==","shasum":"f238778817a321da29ae025df9e25b9c3a7afb4b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.63.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeh2LLxSHZafxCncRk2HQUJWpiT0D3FaU/vyei4SIEYwIgf6FZLdBMTmooWFI2dyPJDY/YgganIJoXwUnL6iKdF0A="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.63_1699471501008_0.05798251184358083"},"_hasShrinkwrap":false},"0.5.0-alpha.64":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.64","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.64+60fe4319","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.64+60fe4319","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"60fe4319d55c1c0be58d077cc659b74d545ce472","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.64","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-svFaat3vRXvzKc+wrwFGv0+3+XeBskeson3SUBDJ7XzJ0xEn9b95+bgV8VO5SYY8uFIYKzWtKy8vYqGYb/oGtQ==","shasum":"c273f9c1ddb93bcd93172993c876e0a38633a1a5","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.64.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxxTVmdKcEO5wjfylwF+6e1jl1xQKXLIaWz9ts1pdxXAiB8lxus9t4ZO8B6ZOr1mUzxtiuaa+ZDnru0jAYPjwZ4vA=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.64_1699482376230_0.6065945234621728"},"_hasShrinkwrap":false},"0.5.0-alpha.65":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.65","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.65+5a04745e","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.65+5a04745e","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"5a04745e8144b2a54d56140bc8acd288bbea09a1","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.65","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-pNlXl2MYqm/Gn5K9hAgJ9gCYGM34diJVYFtLUkWiX0jUqG7Oi+rvVWyyEJC2aR+y6Xg/lkDECP2tJMe4DXosVQ==","shasum":"63c3fa0258e9e6f6a915293a1aa97efb3dffd0cd","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.65.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6xV1j2/XerwskBp/fhIzekpw7OxXK23vYDAMRco42GwIhAP8fTubAiWDr5NHOpyapbzrxPeDKcy47egFQSWlHLJ1v"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.65_1699533005059_0.19774344883679906"},"_hasShrinkwrap":false},"0.5.0-alpha.66":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.66","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.66+d40bfd1b","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.66+d40bfd1b","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"d40bfd1b96001870a3a1553cb9d6faaefe71e364","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.66","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-DhWYwICGHyWTnyRMTfZHMhjmhXtuawtMR7vkTkeQOkjciepqLvDjmtkDNUCt9EX1ZaOCyqTXhUUfRVPhaB0l/A==","shasum":"308085f75fdf8fac15d64d7a63eb28f1fe26eadb","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.66.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHNNc5PihQwhvzsYzch/5Uw7gbliLDhMzhOxoDMf4KrAiBrvBuODuWv5rRISWEbi3gTp+7stqP4exssmuGTgVtNxw=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.66_1699616270678_0.9905402635682674"},"_hasShrinkwrap":false},"0.5.0-alpha.67":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.67","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.67+a641a969","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.67+a641a969","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"a641a9699b7816825a88f2c883c9e65aaa4c0f87","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.67","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-jmqxyNvKMugEE89e1HFWAPb8mF5ow54jU6f3P869H+WHDuq0+Y5e/sp+Fowqupu+qfpvc+GvFuEypbio9CCaoA==","shasum":"37be69cdf2ae612645213551c4a311be46915c09","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.67.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBtTku3c7ZOFd8RnbxenWezKrHq8YHmUOpJbiCGYrA0BAiAdz77G69ZuKZT8NhUMh6LyYoeoS2eKDLW9SjGER0CYJg=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.67_1699618568235_0.8804149603961373"},"_hasShrinkwrap":false},"0.5.0-alpha.68":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.68","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.68+ed874ce3","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.68+ed874ce3","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"ed874ce38ed1a1a0f01b12958e5b14823661b06a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.68","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-SlNtf2lC7mGLUp+Vhm1dtFNTUbzv5BI5QXZzyq4H5eEitGjSt0QvM6v1Ae82GgEulHAOcznF22C7QC8LiZPySQ==","shasum":"1d762c1e9e00bbb840db75d856c204b3a2ff546d","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.68.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA9DOL2EXl2mCvVlUR5hrno4iityY5PdGtx3stdXOZzEAiEA2RVT7Y4+YLBq2yy2J/z19kuKWsEErW42CZHDsEjaTvM="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.68_1700580093743_0.7012199943442312"},"_hasShrinkwrap":false},"0.5.0-alpha.69":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.69","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.69+c59ad59f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.69+c59ad59f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"c59ad59fbe63b6d3760d19030e0f95fb2ea8488a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.69","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-mjm6BEw20c+uiJW7FNo7Al8CdoWhgOkiSSHBVhrUkRvyTXKWRUQlraF5CsS45763JDQquMzZKRuaRjz19rRhAA==","shasum":"2c03edfb768d4433e0d495d4c1edc3fb83167894","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.69.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPCrBkX+HksuXBkR40c5kAtdKNWI8rCjDBga9W8OLyswIhAONw5oZPNcgG5iPfltifkIt6VzzHj0wUrJJ0M/j/uA6v"}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.69_1700620491917_0.771330674876983"},"_hasShrinkwrap":false},"0.5.0-alpha.70":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.70","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.70+505fba25","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.70+505fba25","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"505fba25ad0a61e3c619562c5186ad3129b3e16f","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.70","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-9ArXaARXR8R/1NuMMiMFM/R7kyRWw2L98zAKob9P0ZlgyNfuCW0B53LF+NQ9BekRUG5waFJFzbDKD9OXHHjVPQ==","shasum":"05dc8ed5da859b1157181bccb824914368342848","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.70.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrSUAkEKqvyYfjIiUpARaxbHaDeLqt8h4Ww7oO0hAOsQIgJKb4GUMqeDkDErkci6trYv1Pbrl4bn/p6JwHD1bwRUM="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.70_1701097794149_0.23772444673592452"},"_hasShrinkwrap":false},"0.5.0-alpha.71":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.71","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.71+4c08179b","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.71+4c08179b","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"4c08179bf40c3ceadbbf9e342bb2e0de5a5a9243","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.71","_nodeVersion":"18.18.2","_npmVersion":"lerna/6.6.1/node@v18.18.2+x64 (linux)","dist":{"integrity":"sha512-J2l/Xf6uC5EEGZntXdjTmL2c96HU/h1LqrMp9kxHX+HvhqL3Vd3do7R5I/fDUgTD6ECbcD6z9mNOcZ1m5aiklQ==","shasum":"eeccad8b3d398128a4af1d5e9e3046eb0700c49b","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.71.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICLOfUyAUOrOiS+3WJQsuqUx0oJm48qNdiOIifo2Bmf9AiAwaYg58blA+uFtc4wYjon85xD3DCaTU5JIgIrSQb3L6A=="}]},"_npmUser":{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},"directories":{},"maintainers":[{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.71_1701097925589_0.551556262907912"},"_hasShrinkwrap":false},"0.5.0-alpha.79":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.79","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.79+1f781ec9","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.79+1f781ec9","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"1f781ec9a39c223664a248fccc89d3fcd6038732","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.79","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-slPZ7deBu+SqE6+xBDhNVNX+xvAnlwC+E2Gv9r9gnm8mEM2Ir9NuxiqCfX5KSaRqCP0wQR5q0ht8LKjzvm0fBw==","shasum":"22fdfdaf10d6818ec2a08d0fa1f6e557e6189125","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.79.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/AQI40Oj9deWXLlniUD7ZQWnkscUQou2JFywPRSw2fAIgIRqWr0yPm/q/2JWp1C2tMd4/pNKq19raBPTA3Zo6yOE="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.79_1703312439539_0.2155876397591583"},"_hasShrinkwrap":false},"0.5.0-alpha.80":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.80","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.80+b28902c1","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.80+b28902c1","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"b28902c18589ef7ed25b8b9d827c48bd693cc9b7","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.80","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-tJTYGGPSGLnvw5Fb1lTDoAbq+wXLdKKcoOEpVCzZMiDim3aPlN9/mJ5DrBcacJjENegAan2fv9IGhLqSlrPnlw==","shasum":"8747e2905f177f8288103d8ad2d68dc227122d1a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.80.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDG/ovgh3iCKBvm+SUIsCkzNNUhulWx6VPehbiCsgMCAiBAQdlm157TWLtJEaLWPaZWp4UYWfKptvRsoPdWbtSqkw=="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.80_1703757239644_0.7888585563844719"},"_hasShrinkwrap":false},"0.5.0-alpha.81":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.81","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.81+ec64044e","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.81+ec64044e","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"ec64044ee50f608b8a79f8275f8b428bdcc1b0e2","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.81","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-0pcQpqqH5Su09YRIE0/jibLhSNIX9mvlanGX9OlV1Nsi54Jp+qcadSjygUu0fDUN7wK08vqZMeQdQiGK8D9zsg==","shasum":"b531f73b6021d149453b7e48cc5ce02ce52e4da4","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.81.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhqoqGCjjZf17iX5wsif6/ocdT06VASRR8OZI6ajh+0wIhAOSJkuSAqet03boVpkyAu8P5dh/sOHRRABTXSPtj7QxC"}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.81_1704755408626_0.2909333487875283"},"_hasShrinkwrap":false},"0.5.0-alpha.82":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.82","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.82+3dd6482e","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.82+3dd6482e","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"3dd6482ef196cb3b01a0d3d93db4eb6b5ad02239","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.82","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-LowCIV0UTNxT1oPizbcfE/nH8SGI9AsWzs77qaKdsppDPr85Aa0c1M8TKlf/3O2n3aHzgbBG6tOVJVFU8qScug==","shasum":"7d62856e0d4a93884bd35f706d8577729c5691a8","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.82.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7pD+WdEY0E+CMwWjSo5L5fs930Qkwqs3VxODykNp0AAiB03TerQAQrL7UxcvaEnb5rCi2h49FJTGA829QXFhr/fw=="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.82_1704756907578_0.5125527832798216"},"_hasShrinkwrap":false},"0.5.0-alpha.83":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.83","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.83+739b19bd","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.83+739b19bd","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"739b19bd947aa546babe9c4f881ce30c88dd8b5d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.83","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-O67q6IiDOQBPijoi3K+MFQFWcMS7vgMPu1wXZmAul7d/9Os8rW9se0JekY+JbacA6wOjZXuAjnaz5y74GI1sXQ==","shasum":"3d45a6d051ad3be374fa0d9158d0ba8c630b4c15","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.83.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrJ4099Kf5g94lEG+odXG/OtYvPM59pSTp0W7EdNJ4XwIhAJ0b0E3j6dJrZq/loxBXnjpuuhgySDv1mjnlkDFstfmm"}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.83_1704764733420_0.767572211947674"},"_hasShrinkwrap":false},"0.5.0-alpha.84":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.84","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.84+99b801df","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.84+99b801df","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"99b801dfb6edcd3b7baaa8108ad361be4e05ff67","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.84","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-9MmtmaFwgkYrEosKwSwVls6kK+c1uijUliXOfgSCCA4/7L7LC0tY4AKa764+PSecau0eOOkrBpYJWmxRgWhSbA==","shasum":"35278efc0eae3f76e2acea5187273b1b7dbe5c78","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.84.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBt8hUIEfmRkmzfA2AMYQ8/JOIgOEwAoLoqB5Oxab9zAiAfeQ+ITjT0XPmCpYSYYRtXiyfsuk9d8yL7HozDVmmdjw=="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.84_1704766660600_0.8744225109133803"},"_hasShrinkwrap":false},"0.5.0-alpha.85":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.85","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.85+40c9bb6e","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.85+40c9bb6e","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"40c9bb6e9efe6cceb62c79d34366edf77ba84b0d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.85","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-j/BJKusas9A6e+jrTwOuix+E9FAV9Dg8xKk9DhRT4X3oGS878VKt8kqo2S6bzbXtprsGvBn4U/vwE9J7UwdvQQ==","shasum":"c22dc5feb6bf13be49d3dda4836567a6d456757a","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.85.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRwaVaCx2mxWLrISz7GVsSZjHkmB8thd0r1vxWE17B7AiEAyoWg7XdQeDT+Bfzs16kiw1f08r6JJ4FF/5R9HMaouCo="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.85_1704873414041_0.9690058661320535"},"_hasShrinkwrap":false},"0.5.0-alpha.86":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.86","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.86+1d333770","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.86+1d333770","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"1d333770dcc9e261446b43b5f4cd5626fa7ac4a7","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.86","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-Qo+UyRui2NarR1JT6LvucIQMp9igbeZ94fTpKtXcP3IjB6a8L7iXansjHf/ZN7+PNZ+LdVKs/dof0yBd3HBQ8Q==","shasum":"ea29951647027573eb6558594301d39da8d33a66","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.86.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNWP3BM8dJwsC5zJZ4oPwsOk7p0dmcvELE/fHYYijFCAIhAJTHhpoIlt7ujwb/Wqxk9H6uucMUI4IYhsoyZ9/QHhM2"}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.86_1704893638301_0.9413942732207645"},"_hasShrinkwrap":false},"0.5.0-alpha.87":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.87","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.87+ee34fe71","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.87+ee34fe71","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"ee34fe71780a0787db96e28575eeedce3b4704bd","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.87","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-z/NpGx1OuTvLRdpy5h9vkUY0nHVwqq5D3K5rnObDSrfVnXw0zndmtlHCXOG3hARO7uFWf18vYseWvOSKVMLH2w==","shasum":"9afba9a1085df566e60bada224261664da49fd6e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.87.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUaIeykc44gOn99mXpbxRxcgJgOvWNxdHol43/meD/FAiEAmaXRAn5zqkwzj2/EpRvIptQRh+6Lv/zUx0awgpM8U8E="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.87_1705579556671_0.3785226378555633"},"_hasShrinkwrap":false},"0.5.0-alpha.88":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.88","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.88+bdf5e02f","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.88+bdf5e02f","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"bdf5e02fdf9ab52a300433b2e5bcea93cabaec76","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.88","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-25Yh8AWZEGXgOSgImeD82fqYHr+3nZaX80En0daTUsFV1fW+1v/4g1w29wNFL7aJ4btSwXH7S1pvKprzh4y+zw==","shasum":"ab8fb16c4ca16557d3ed77cbd859dfaffcd298f0","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.88.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAV18+dYtVNRzGRtpPQBIkvlpnMuMAaTtXSYqdG/GV4ZAiEAuuJTLWxteGvXgrCaOMvGfjtylIWua+Hflo+VEL3WU8s="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.88_1705945376336_0.9136247739282539"},"_hasShrinkwrap":false},"0.5.0-alpha.89":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.89","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.89+60c51c25","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.89+60c51c25","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"60c51c257af2def96045c36e7c57a8f44efccf40","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.89","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-Z21iQ6zMJVIbM2r03QT0YW+WgiJuupZ44j5XSCXQkIdwPdzx9ffU5BZ6aNu1GC0mDVxgAfzfk7H2GzdiPod/jw==","shasum":"2ec13104b59c142334f74bd8bf5f6448139d2538","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.89.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVeXPVJhFmR02Gf0aST/hmXRPqSL8tpL86UYu0+v70vQIgX79OpbSto3ds9VIAUetdoCXERkISygAIA13dZSSkL/4="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.89_1706451734787_0.1792071841587457"},"_hasShrinkwrap":false},"0.5.0-alpha.90":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.90","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.90+93d9d8bb","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.90+93d9d8bb","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"93d9d8bb3a93e47197a2c01998807523d783b0bf","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.90","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-8IikodvR/o3LXTiCNvkOvQ5kN0d5joXyJdKxTFZ0ytjys9aiO3BnRZ3tEg1kJ6BAmBgB9ZIsKFGd4sF381hZBg==","shasum":"c2e65a1700dbf638c82ae404e45786fc5bfddd3e","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.90.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAKPTSaH+FUiaKDASFStZWJVxlDtVbDqi6XG8iYpPEw9AiEAvVsEHFU3f0az/nsgqLvpjy6UOxcv57VJWIaQLqLVaIY="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.90_1706466082346_0.1702847237819003"},"_hasShrinkwrap":false},"0.5.0-alpha.91":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.91","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.91+3d1903af","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.91+3d1903af","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"3d1903af6b35cb91d83c5b0b07b7220a78621571","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.91","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-hQ8qb6XVLrUNYb1g59fKaf8j+VBfHmMDdHNxPBaTjqNRvb0h8g9Tr1pfFph0hIYWHNnpEHOar3P5KfKmcL3i2A==","shasum":"0df68be05447acfd027d6f294af0f970073c27fa","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.91.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdbVGk5kwb0TFkTu/R82dJQJ0TmPazeFDI1AbXtabnbAIhALL8vWV8FEE2o8yrbu8CHGAOGuZYmdsG2Ks94JStjWTD"}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.91_1706471770804_0.9104991161369991"},"_hasShrinkwrap":false},"0.5.0-alpha.92":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.92","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.92+c66b37ee","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.92+c66b37ee","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"c66b37eea2d5b97284e28d4c523c40851704812d","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.92","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-tGyY+v5CukKt3/4tXw/dHk8vj8lic3iYKNCIlRoa4gqmuDonwAdTkdHwEZD+byyh5duBfbdDlcmm+SpafD+twQ==","shasum":"d314e033ac6990eebacda4d8533501d0eafcd4d3","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.92.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrulR7ELyU6N2Hd8/Zl+m26mf4YzLJaRw9PqBvGYPCxAiEA+8rb+KwOGrFcby+miv6p35LU80RMQ/1G6sxKVRmrSbA="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.92_1706529288595_0.3182011781315621"},"_hasShrinkwrap":false},"0.5.0-alpha.93":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.93","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.93+34a6c9f1","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.93+34a6c9f1","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"34a6c9f185d7b177956e5e2c5d79408e52915136","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.93","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-6dft02rGViMEgaiBLjZhg1FwMNr+PIOAdqgbHXCjTS5XHIu/p+C+We0v8fzLLaAEdoKLN6xcg1GMitull658Dg==","shasum":"5650a1b371a04e6c71ba84ae2a30743947b869b6","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.93.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICanl2nsfQwOqdotE80+p+PEjBtnzJMEUKLK2enBOPauAiEApkfArGmBdilm32o4o0DBuR7opFD+HtKuAJLztOCVfDQ="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.93_1706531034640_0.25467753454693876"},"_hasShrinkwrap":false},"0.5.0-alpha.94":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.94","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.94+1261caa2","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.94+1261caa2","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"1261caa245f05785193da16cfee3c70b7715106a","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.94","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-vefiSMAkvlX+J19aG4CUyfraGo7lRsq1sskaVAhSfKmYoKz/aDQJ10Fv3ti5JDGTVAv8wyNWfVUkbHREUUW4XA==","shasum":"7ed845ce1aa09cdf434d3890b3749198933735f5","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.94.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1KiVClz/zOyNQqWbvEq6zF27Cv6A2aI5MovoIFYV4XAIgR2edkmioVFtuLytFIYzEw5hY0BfNejka6EQ3Ja4s/TA="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.94_1706537060432_0.6966248014879981"},"_hasShrinkwrap":false},"0.5.0-alpha.95":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.95","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.95+3656d490","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.95+3656d490","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"3656d4902fb832e5e75142b1846074d4f39c11a2","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.95","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-Xc1Fa75xkM1RaC7gTjpn+7NlTbmUXuTPUyfl98ABZIrkXxBj16pmr4WS8uBiQQuVPEDRE785Hs51pz8MAegltg==","shasum":"fa8c12c92b85b5c9b55269e0fee7de42a0651e6f","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.95.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjBoy104PkC8CpBr7u/4AVqwfz5kSk160RZ12peZ/giQIgGNcN26J046O+peDkQhWvFkTF+E5ZWlIezoDmyyWVv/U="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.95_1706541446145_0.5263500365902261"},"_hasShrinkwrap":false},"0.5.0-alpha.96":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.96","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.96+a5b569bc","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.96+a5b569bc","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"a5b569bc021549a43f2b868bbed7978554d233aa","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.96","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-hvjb4lMAJlvOFzJ579a2yGkxtL7XpgviNKHW3KiY0x3FkV2LhVHga6Rw1lzC6nPvqOeUVKLne4Y1lBSjNKkrYg==","shasum":"0053a43ebefd9954ff5074953ada55aa35f1d654","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.96.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEcdcUvM2o/3TNyTEpoHmJlpyJJx9UGEC9RSEqhz5MQgIgelGp992OIyyxVudUghUnVETL2XbH0kZS8ljOd+m3XAk="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.96_1706546379145_0.6734849671814294"},"_hasShrinkwrap":false},"0.5.0-alpha.97":{"name":"@aries-framework/openid4vc-client","main":"build/index","types":"build/index","version":"0.5.0-alpha.97","license":"Apache-2.0","publishConfig":{"access":"public"},"homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"scripts":{"build":"yarn run clean && yarn run compile","clean":"rimraf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build","test":"jest"},"dependencies":{"@aries-framework/core":"0.5.0-alpha.97+adc7d4ec","@sphereon/openid4vci-client":"^0.4.0","@stablelib/random":"^1.0.2"},"devDependencies":{"@aries-framework/node":"0.5.0-alpha.97+adc7d4ec","nock":"^13.3.0","rimraf":"^4.4.0","typescript":"~4.9.5"},"gitHead":"adc7d4ecfea9be5f707ab7b50d19dbe7690c6d25","readme":"<p align=\"center\">\n  <br />\n  <img\n    alt=\"Hyperledger Aries logo\"\n    src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"\n    height=\"250px\"\n  />\n</p>\n<h1 align=\"center\"><b>Aries Framework JavaScript Open ID Connect For Verifiable Credentials Client Module</b></h1>\n<p align=\"center\">\n  <a\n    href=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE\"\n    ><img\n      alt=\"License\"\n      src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"\n  /></a>\n  <a href=\"https://www.typescriptlang.org/\"\n    ><img\n      alt=\"typescript\"\n      src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\"\n  /></a>\n    <a href=\"https://www.npmjs.com/package/@aries-framework/openid4vc-client\"\n    ><img\n      alt=\"@aries-framework/openid4vc-client version\"\n      src=\"https://img.shields.io/npm/v/@aries-framework/openid4vc-client\"\n  /></a>\n\n</p>\n<br />\n\nOpen ID Connect For Verifiable Credentials Client Module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript).\n\n### Installation\n\nMake sure you have set up the correct version of Aries Framework JavaScript according to the AFJ repository.\n\n```sh\nyarn add @aries-framework/openid4vc-client\n```\n\n### Quick start\n\n#### Requirements\n\nBefore a credential can be requested, you need the issuer URI. This URI starts with `openid-initiate-issuance://` and is provided by the issuer. The issuer URI is commonly acquired by scanning a QR code.\n\n#### Module registration\n\nIn order to get this module to work, we need to inject it into the agent. This makes the module's functionality accessible through the agent's `modules` api.\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\n\nconst agent = new Agent({\n  config: {\n    /* config */\n  },\n  dependencies: agentDependencies,\n  modules: {\n    openId4VcClient: new OpenId4VcClientModule(),\n    /* other custom modules */\n  },\n})\n\nawait agent.initialize()\n```\n\nHow the module is injected and the agent has been initialized, you can access the module's functionality through `agent.modules.openId4VcClient`.\n\n#### Preparing a DID\n\nIn order to request a credential, you'll need to provide a DID that the issuer will use for setting the credential subject. In the following snippet we create one for the sake of the example, but this can be any DID that has a _authentication verification method_ with key type `Ed25519`.\n\n```ts\n// first we create the DID\nconst did = await agent.dids.create<KeyDidCreateOptions>({\n  method: 'key',\n  options: {\n    keyType: KeyType.Ed25519,\n  },\n})\n\n// next we do some assertions and extract the key identifier (kid)\n\nif (\n  !did.didState.didDocument ||\n  !did.didState.didDocument.authentication ||\n  did.didState.didDocument.authentication.length === 0\n) {\n  throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n}\n\nconst [verificationMethod] = did.didState.didDocument.authentication\nconst kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n```\n\n#### Requesting the credential (Pre-Authorized)\n\nNow a credential issuance can be requested as follows.\n\n```ts\nconst w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n  issuerUri,\n  kid,\n  checkRevocationState: false,\n})\n\nconsole.log(w3cCredentialRecord)\n```\n\n#### Full example\n\n```ts\nimport { OpenId4VcClientModule } from '@aries-framework/openid4vc-client'\nimport { agentDependencies } from '@aries-framework/node' // use @aries-framework/react-native for React Native\nimport { Agent, KeyDidCreateOptions } from '@aries-framework/core'\n\nconst run = async () => {\n  const issuerUri = '' // The obtained issuer URI\n\n  // Create the Agent\n  const agent = new Agent({\n    config: {\n      /* config */\n    },\n    dependencies: agentDependencies,\n    modules: {\n      openId4VcClient: new OpenId4VcClientModule(),\n      /* other custom modules */\n    },\n  })\n\n  // Initialize the Agent\n  await agent.initialize()\n\n  // Create a DID\n  const did = await agent.dids.create<KeyDidCreateOptions>({\n    method: 'key',\n    options: {\n      keyType: KeyType.Ed25519,\n    },\n  })\n\n  // Assert DIDDocument is valid\n  if (\n    !did.didState.didDocument ||\n    !did.didState.didDocument.authentication ||\n    did.didState.didDocument.authentication.length === 0\n  ) {\n    throw new Error(\"Error creating did document, or did document has no 'authentication' verificationMethods\")\n  }\n\n  // Extract key identified (kid) for authentication verification method\n  const [verificationMethod] = did.didState.didDocument.authentication\n  const kid = typeof verificationMethod === 'string' ? verificationMethod : verificationMethod.id\n\n  // Request the credential\n  const w3cCredentialRecord = await agent.modules.openId4VcClient.requestCredentialPreAuthorized({\n    issuerUri,\n    kid,\n    checkRevocationState: false,\n  })\n\n  // Log the received credential\n  console.log(w3cCredentialRecord)\n}\n```\n","readmeFilename":"README.md","description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"_id":"@aries-framework/openid4vc-client@0.5.0-alpha.97","_nodeVersion":"18.19.0","_npmVersion":"lerna/6.6.1/node@v18.19.0+x64 (linux)","dist":{"integrity":"sha512-fEqhgearUSRXP7WqLdqiLHZaGb11NaXPuhtFsimSgG4OUfXo51lYZu6CCQhR0WNbQxSEXjYKkvzijgzFCByZGg==","shasum":"aa902f6422e2107ebc5af897743e3fcce911e461","tarball":"https://registry.npmjs.org/@aries-framework/openid4vc-client/-/openid4vc-client-0.5.0-alpha.97.tgz","fileCount":18,"unpackedSize":67762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDWks7fvDPrXPbdMYJOCIGqtUxv93gTeYctTz5aUAulQIgQmcFDrcw+qGAuJh3sobjqjKUP6Zzl6VNWqE24DzBmR4="}]},"_npmUser":{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},"directories":{},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openid4vc-client_0.5.0-alpha.97_1706555276194_0.7367119659998085"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-12T14:01:39.761Z","0.3.3-alpha.9":"2023-01-12T14:01:39.994Z","modified":"2024-01-29T19:07:56.591Z","0.3.4-alpha.10":"2023-02-06T23:11:29.871Z","0.3.4-alpha.12":"2023-02-07T02:37:06.690Z","0.3.4-alpha.13":"2023-02-10T00:41:26.647Z","0.3.4-alpha.14":"2023-02-10T14:17:13.232Z","0.3.4-alpha.15":"2023-02-10T19:23:32.681Z","0.3.4-alpha.16":"2023-02-10T21:17:00.517Z","0.3.4-alpha.17":"2023-02-10T22:18:15.671Z","0.4.0-alpha.18":"2023-02-11T21:52:37.273Z","0.4.0-alpha.19":"2023-02-13T08:25:29.091Z","0.4.0-alpha.20":"2023-02-13T10:45:43.230Z","0.4.0-alpha.21":"2023-02-13T11:59:52.181Z","0.4.0-alpha.22":"2023-02-13T13:44:44.445Z","0.4.0-alpha.23":"2023-02-13T15:26:39.036Z","0.4.0-alpha.24":"2023-02-13T17:43:29.572Z","0.4.0-alpha.25":"2023-02-13T18:52:06.501Z","0.4.0-alpha.26":"2023-02-13T20:05:57.197Z","0.4.0-alpha.27":"2023-02-13T22:04:22.310Z","0.4.0-alpha.28":"2023-02-14T10:00:08.260Z","0.4.0-alpha.29":"2023-02-14T22:53:27.089Z","0.4.0-alpha.30":"2023-02-15T22:14:30.660Z","0.4.0-alpha.31":"2023-02-15T23:27:49.354Z","0.4.0-alpha.32":"2023-02-17T19:13:37.500Z","0.4.0-alpha.33":"2023-02-17T20:34:17.203Z","0.4.0-alpha.34":"2023-02-18T00:36:21.294Z","0.4.0-alpha.35":"2023-02-18T02:12:45.323Z","0.4.0-alpha.36":"2023-02-18T19:56:53.010Z","0.4.0-alpha.37":"2023-02-19T16:29:44.747Z","0.4.0-alpha.38":"2023-02-20T00:02:11.177Z","0.4.0-alpha.39":"2023-02-20T11:20:55.281Z","0.4.0-alpha.40":"2023-02-20T12:07:01.205Z","0.4.0-alpha.41":"2023-02-20T16:14:40.318Z","0.4.0-alpha.42":"2023-02-21T14:42:44.960Z","0.4.0-alpha.43":"2023-02-21T22:21:35.435Z","0.4.0-alpha.44":"2023-02-22T07:39:56.615Z","0.4.0-alpha.45":"2023-02-24T09:22:37.869Z","0.4.0-alpha.46":"2023-02-24T10:13:58.837Z","0.4.0-alpha.47":"2023-02-24T11:09:11.137Z","0.4.0-alpha.48":"2023-02-24T12:16:06.988Z","0.4.0-alpha.49":"2023-02-24T17:02:01.404Z","0.4.0-alpha.50":"2023-02-24T19:53:47.480Z","0.4.0-alpha.51":"2023-02-24T21:23:32.695Z","0.4.0-alpha.52":"2023-02-25T14:52:21.006Z","0.4.0-alpha.53":"2023-02-27T12:26:21.955Z","0.4.0-alpha.54":"2023-02-27T18:37:45.680Z","0.4.0-alpha.55":"2023-03-02T05:06:11.279Z","0.4.0-alpha.56":"2023-03-02T14:45:14.790Z","0.4.0-alpha.57":"2023-03-02T16:47:37.203Z","0.4.0-alpha.58":"2023-03-02T20:03:32.901Z","0.4.0-alpha.59":"2023-03-02T21:41:24.871Z","0.4.0-alpha.60":"2023-03-03T10:10:27.781Z","0.4.0-alpha.61":"2023-03-03T11:19:50.929Z","0.4.0-alpha.62":"2023-03-06T11:29:37.291Z","0.4.0-alpha.63":"2023-03-06T13:30:58.247Z","0.4.0-alpha.64":"2023-03-08T13:52:02.774Z","0.4.0-alpha.65":"2023-03-08T15:54:46.663Z","0.4.0-alpha.66":"2023-03-08T16:42:36.266Z","0.4.0-alpha.67":"2023-03-11T10:23:11.029Z","0.4.0-alpha.68":"2023-03-11T11:10:59.148Z","0.4.0-alpha.69":"2023-03-11T12:34:20.657Z","0.4.0-alpha.70":"2023-03-11T15:00:04.726Z","0.4.0-alpha.71":"2023-03-11T15:33:34.714Z","0.4.0-alpha.72":"2023-03-15T10:55:07.894Z","0.4.0-alpha.73":"2023-03-15T12:26:34.207Z","0.4.0-alpha.74":"2023-03-15T15:05:40.107Z","0.4.0-alpha.75":"2023-03-17T17:57:16.443Z","0.4.0-alpha.76":"2023-03-18T14:25:55.012Z","0.4.0-alpha.77":"2023-03-18T18:31:59.174Z","0.4.0-alpha.78":"2023-03-18T21:20:16.461Z","0.4.0-alpha.79":"2023-03-19T16:55:21.463Z","0.4.0-alpha.80":"2023-03-19T18:35:56.273Z","0.4.0-alpha.81":"2023-03-20T18:00:40.808Z","0.4.0-alpha.82":"2023-03-21T01:34:12.758Z","0.4.0-alpha.83":"2023-03-21T14:45:28.918Z","0.4.0-alpha.84":"2023-03-21T17:10:38.332Z","0.4.0-alpha.85":"2023-03-22T18:06:12.504Z","0.4.0-alpha.86":"2023-03-27T09:34:28.871Z","0.4.0-alpha.87":"2023-03-28T14:50:08.480Z","0.4.0-alpha.88":"2023-03-29T17:51:40.839Z","0.4.0-alpha.89":"2023-03-29T20:14:17.512Z","0.4.0-alpha.90":"2023-03-29T20:50:02.346Z","0.4.0-alpha.91":"2023-03-30T16:32:56.874Z","0.4.0-alpha.92":"2023-03-30T19:24:46.761Z","0.4.0-alpha.93":"2023-03-31T14:18:22.571Z","0.4.0-alpha.94":"2023-03-31T15:41:16.992Z","0.4.0-alpha.95":"2023-03-31T17:03:57.485Z","0.4.0-alpha.96":"2023-04-01T13:44:18.936Z","0.4.0-alpha.98":"2023-04-01T21:41:15.263Z","0.4.0-alpha.99":"2023-04-03T12:05:58.953Z","0.4.0-alpha.100":"2023-04-04T13:52:44.229Z","0.4.0-alpha.101":"2023-04-04T14:05:13.761Z","0.4.0-alpha.102":"2023-04-04T14:25:23.232Z","0.4.0-alpha.103":"2023-04-04T19:31:51.943Z","0.4.0-alpha.104":"2023-04-05T15:18:45.282Z","0.4.0-alpha.105":"2023-04-10T10:56:20.565Z","0.4.0-alpha.106":"2023-04-10T11:00:57.599Z","0.4.0-alpha.107":"2023-04-12T22:06:00.597Z","0.4.0-alpha.108":"2023-04-13T09:28:44.785Z","0.4.0-alpha.109":"2023-04-14T12:29:52.324Z","0.4.0-alpha.110":"2023-04-14T23:08:39.737Z","0.4.0-alpha.111":"2023-04-16T20:08:41.280Z","0.4.0-alpha.112":"2023-04-19T15:15:33.311Z","0.4.0-alpha.113":"2023-04-19T19:00:18.412Z","0.4.0-alpha.114":"2023-04-19T22:07:51.210Z","0.4.0-alpha.115":"2023-04-24T12:06:24.476Z","0.4.0-alpha.116":"2023-04-28T17:00:03.757Z","0.4.0-alpha.117":"2023-05-01T10:36:20.317Z","0.4.0-alpha.118":"2023-05-01T12:29:26.842Z","0.4.0-alpha.119":"2023-05-03T06:59:27.133Z","0.4.0-alpha.120":"2023-05-08T20:41:31.863Z","0.4.0-alpha.121":"2023-05-10T09:42:18.978Z","0.4.0-alpha.122":"2023-05-11T08:18:19.580Z","0.4.0-alpha.123":"2023-05-17T09:16:16.276Z","0.4.0-alpha.124":"2023-05-19T08:36:53.538Z","0.4.0-alpha.125":"2023-05-19T14:29:01.096Z","0.4.0-alpha.126":"2023-05-19T16:25:46.052Z","0.4.0-alpha.127":"2023-05-24T20:47:09.178Z","0.4.0-alpha.128":"2023-05-27T21:17:09.094Z","0.4.0-alpha.129":"2023-05-29T14:27:39.530Z","0.4.0-alpha.130":"2023-05-30T15:00:10.209Z","0.4.0-alpha.131":"2023-06-03T15:38:23.493Z","0.4.0":"2023-06-03T17:52:34.392Z","0.4.1-alpha.0":"2023-06-07T11:03:35.066Z","0.4.1-alpha.1":"2023-06-07T21:17:47.390Z","0.4.1-alpha.2":"2023-06-09T07:01:14.604Z","0.4.1-alpha.3":"2023-06-10T11:43:03.940Z","0.4.1-alpha.4":"2023-06-15T08:13:36.881Z","0.4.1-alpha.5":"2023-07-05T12:35:46.963Z","0.4.1-alpha.6":"2023-07-06T13:40:48.348Z","0.4.1-alpha.7":"2023-07-19T11:13:34.242Z","0.4.1-alpha.8":"2023-07-21T12:50:04.931Z","0.4.1-alpha.9":"2023-07-21T13:03:50.488Z","0.4.1-alpha.13":"2023-07-24T06:50:15.883Z","0.4.1-alpha.14":"2023-07-24T12:39:05.877Z","0.4.1-alpha.15":"2023-07-24T12:56:48.380Z","0.4.1-alpha.16":"2023-07-24T16:41:34.711Z","0.4.1-alpha.17":"2023-07-25T09:17:47.054Z","0.4.1-alpha.18":"2023-07-25T10:38:18.573Z","0.4.1-alpha.19":"2023-07-25T12:04:19.102Z","0.4.1-alpha.20":"2023-07-26T16:25:08.642Z","0.4.1-alpha.21":"2023-08-02T05:42:38.467Z","0.4.1-alpha.22":"2023-08-04T13:25:38.766Z","0.4.1-alpha.23":"2023-08-09T18:11:18.451Z","0.4.1-alpha.24":"2023-08-09T19:04:09.703Z","0.4.1-alpha.25":"2023-08-16T07:07:19.923Z","0.4.1-alpha.26":"2023-08-16T07:10:01.606Z","0.4.1-alpha.27":"2023-08-16T07:30:08.059Z","0.4.1-alpha.28":"2023-08-16T07:51:09.045Z","0.4.1-alpha.29":"2023-08-17T22:45:03.076Z","0.4.1-alpha.30":"2023-08-18T11:13:47.632Z","0.4.1-alpha.31":"2023-08-18T14:03:47.080Z","0.4.1-alpha.32":"2023-08-25T08:08:16.275Z","0.4.1-alpha.33":"2023-08-28T14:02:29.035Z","0.4.1-alpha.34":"2023-08-28T19:21:34.872Z","0.4.1":"2023-08-28T20:45:48.038Z","0.4.1-alpha.36":"2023-08-30T08:09:24.698Z","0.4.1-alpha.37":"2023-09-07T21:37:17.786Z","0.4.1-alpha.38":"2023-09-18T09:59:34.741Z","0.4.1-alpha.39":"2023-09-18T15:39:22.860Z","0.4.1-alpha.40":"2023-09-18T16:49:02.640Z","0.4.1-alpha.41":"2023-09-19T10:36:11.312Z","0.4.1-alpha.42":"2023-09-19T11:33:41.043Z","0.4.1-alpha.44":"2023-09-23T11:40:07.994Z","0.4.1-alpha.45":"2023-09-26T16:29:18.919Z","0.4.1-alpha.46":"2023-09-28T13:39:54.246Z","0.4.1-alpha.47":"2023-09-29T09:30:53.447Z","0.4.1-alpha.48":"2023-09-29T09:35:53.685Z","0.4.1-alpha.49":"2023-09-29T09:58:48.719Z","0.4.2":"2023-10-05T13:36:55.394Z","0.4.1-alpha.51":"2023-10-10T18:33:54.952Z","0.4.1-alpha.52":"2023-10-12T09:30:39.195Z","0.4.1-alpha.53":"2023-10-12T09:33:06.496Z","0.4.1-alpha.54":"2023-10-12T09:34:01.237Z","0.4.1-alpha.55":"2023-10-12T09:38:45.020Z","0.4.1-alpha.56":"2023-10-19T12:59:30.744Z","0.5.0-alpha.57":"2023-10-30T21:09:11.303Z","0.5.0-alpha.58":"2023-10-31T20:20:44.891Z","0.5.0-alpha.59":"2023-11-03T11:13:12.918Z","0.5.0-alpha.60":"2023-11-04T14:37:11.617Z","0.5.0-alpha.61":"2023-11-07T12:25:54.923Z","0.5.0-alpha.62":"2023-11-07T20:22:09.207Z","0.5.0-alpha.63":"2023-11-08T19:25:01.201Z","0.5.0-alpha.64":"2023-11-08T22:26:16.458Z","0.5.0-alpha.65":"2023-11-09T12:30:05.246Z","0.5.0-alpha.66":"2023-11-10T11:37:50.818Z","0.5.0-alpha.67":"2023-11-10T12:16:08.504Z","0.5.0-alpha.68":"2023-11-21T15:21:33.914Z","0.5.0-alpha.69":"2023-11-22T02:34:52.137Z","0.5.0-alpha.70":"2023-11-27T15:09:54.351Z","0.5.0-alpha.71":"2023-11-27T15:12:05.797Z","0.5.0-alpha.79":"2023-12-23T06:20:39.715Z","0.5.0-alpha.80":"2023-12-28T09:53:59.835Z","0.5.0-alpha.81":"2024-01-08T23:10:08.853Z","0.5.0-alpha.82":"2024-01-08T23:35:07.732Z","0.5.0-alpha.83":"2024-01-09T01:45:33.593Z","0.5.0-alpha.84":"2024-01-09T02:17:40.812Z","0.5.0-alpha.85":"2024-01-10T07:56:54.226Z","0.5.0-alpha.86":"2024-01-10T13:33:58.443Z","0.5.0-alpha.87":"2024-01-18T12:05:56.821Z","0.5.0-alpha.88":"2024-01-22T17:42:56.496Z","0.5.0-alpha.89":"2024-01-28T14:22:14.930Z","0.5.0-alpha.90":"2024-01-28T18:21:22.576Z","0.5.0-alpha.91":"2024-01-28T19:56:11.019Z","0.5.0-alpha.92":"2024-01-29T11:54:48.734Z","0.5.0-alpha.93":"2024-01-29T12:23:54.789Z","0.5.0-alpha.94":"2024-01-29T14:04:20.625Z","0.5.0-alpha.95":"2024-01-29T15:17:26.501Z","0.5.0-alpha.96":"2024-01-29T16:39:39.295Z","0.5.0-alpha.97":"2024-01-29T19:07:56.336Z"},"maintainers":[{"name":"openwalletfoundation","email":"npm@openwallet.foundation"},{"name":"hyperledger-ghci","email":"npm-ci@hyperledger.org"},{"name":"timoglastra","email":"timo@glastra.me"},{"name":"hyperledger-lf","email":"npm@hyperledger.org"}],"description":"<p align=\"center\">   <br />   <img     alt=\"Hyperledger Aries logo\"     src=\"https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png\"     height=\"250px\"   /> </p> <h1 align=\"c","homepage":"https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/openid4vc-client","repository":{"type":"git","url":"git+https://github.com/hyperledger/aries-framework-javascript.git","directory":"packages/openid4vc-client"},"bugs":{"url":"https://github.com/hyperledger/aries-framework-javascript/issues"},"license":"Apache-2.0","readme":"","readmeFilename":""}