{"id":19122948,"url":"https://github.com/digitalbazaar/oid4-client","last_synced_at":"2026-04-02T01:11:11.022Z","repository":{"id":62372177,"uuid":"560008810","full_name":"digitalbazaar/oid4-client","owner":"digitalbazaar","description":"An OIDC4VCI client","archived":false,"fork":false,"pushed_at":"2026-03-30T20:55:51.000Z","size":259,"stargazers_count":2,"open_issues_count":10,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-03-30T22:23:19.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalbazaar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-31T14:55:22.000Z","updated_at":"2026-03-30T20:55:55.000Z","dependencies_parsed_at":"2024-08-08T20:39:00.584Z","dependency_job_id":"426c8861-f5d6-49ab-b428-88e8143075a9","html_url":"https://github.com/digitalbazaar/oid4-client","commit_stats":null,"previous_names":["digitalbazaar/oidc4vci-client"],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/digitalbazaar/oid4-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Foid4-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Foid4-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Foid4-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Foid4-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalbazaar","download_url":"https://codeload.github.com/digitalbazaar/oid4-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Foid4-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T05:23:43.539Z","updated_at":"2026-04-02T01:11:10.995Z","avatar_url":"https://github.com/digitalbazaar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OID4Client Library _(@digitalbazaar/oid4-client)_\n\n[![NPM Version](https://img.shields.io/npm/v/@digitalbazaar/oid4-client.svg)](https://npm.im/@digitalbazaar/oid4-client)\n\nA JavaScript library for working with the OpenID 4 Verifiable Credential\nIssuance (OID4VCI) protocol, offering functionality for requesting Verifiable\nCredentials.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Testing](#testing)\n- [Contribute](#contribute)\n- [Commercial Support](#commercial-support)\n- [License](#license)\n\n## Background\n\nThis library is a JavaScript (Node.js and browser) implementation of the\n[OID4VCI v11](https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html)\nProtocol.\n\nIt allows you to perform the following operations:\n\n1. Request a credential to be issued given a OID4VCI credential offer.\n2. Request multiple credentials to be issued given a OID4VCI credential offer.\n3. Authenticate using a DID if the offer requires it.\n\n## Install\n\n```bash\nnpm install @digitalbazaar/oid4-client\n```\n\n## Usage\n\n### Importing the Library\n\n```javascript\nimport { OID4Client } from \"@digitalbazaar/oid4-client\";\n```\n\n\n### Creating a Client from a Credential Offer\n\n```javascript\nconst clientFromOffer = await OID4Client.fromCredentialOffer({\n  offer: \"YOUR_CREDENTIAL_OFFER\",\n});\n```\n\n### Constructor\n\nYou can also instantiate the `OID4Client` directly using the following parameters:\n\n- `accessToken` (Optional)\n- `issuerConfig`\n- `metadata`\n- `offer`\n\nExample:\n\n```javascript\nconst client = new OID4Client({\n  accessToken: \"YOUR_ACCESS_TOKEN\",\n  issuerConfig: \"YOUR_ISSUER_CONFIG\",\n  metadata: \"YOUR_METADATA\",\n  offer: \"YOUR_OFFER\",\n});\n```\n\n### Requesting a Credential\n\nTo request a single credential using the credential offer:\n\n```javascript\nconst credential = await client.requestCredential({\n  did: \"YOUR_DID\",\n  didProofSigner: \"YOUR_DID_PROOF_SIGNER\",\n});\n```\n\nTo request multiple credentials using the credential offer:\n\n```javascript\nconst credentials = await client.requestCredentials({\n  did: \"YOUR_DID\",\n  didProofSigner: \"YOUR_DID_PROOF_SIGNER\",\n});\n```\n\n### Requesting a Credential By Definition\n\nTo request a single credential using a specific credential definition:\n\n```javascript\nconst credential = await client.requestCredential({\n  credentialDefinition: \"YOUR_CREDENTIAL_DEFINITION\",\n  did: \"YOUR_DID\",\n  didProofSigner: \"YOUR_DID_PROOF_SIGNER\",\n});\n```\n\nTo request multiple credentials using credential definition requests:\n\n```javascript\nconst credentials = await client.requestCredentials({\n  requests: \"YOUR_REQUESTS\",\n  did: \"YOUR_DID\",\n  didProofSigner: \"YOUR_DID_PROOF_SIGNER\",\n});\n```\n\n## Testing\n\nTo run tests:\n\n```\nnpm run test\n```\n\n## Contribute\n\nSee\n[the contribute file](https://github.com/digitalbazaar/bedrock/blob/master/CONTRIBUTING.md)!\n\nPRs accepted.\n\nNote: If editing the Readme, please conform to the\n[standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## Commercial Support\n\nCommercial support for this library is available upon request from Digital\nBazaar: support@digitalbazaar.com\n\n## License\n\n[New BSD License (3-clause)](LICENSE) © Digital Bazaar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Foid4-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalbazaar%2Foid4-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Foid4-client/lists"}