Repository navigation
0.2.0
This release introduces a Verifier class, configurable issuer trust and revocation checks, and EU Age Verification support.
Breaking changes
- Replaced the standalone verification functions with instance methods:
createCredentialsRequest()→verifier.createWebCredentialsRequest()requestCredentials()→verifier.requestCredentials()processCredentials()→verifier.processCredentials()
- Moved
trustListsconfiguration fromprocessCredentials()to theVerifierconstructor. - Removed
setTestDataUsage()and registry test-issuer support. Supply your own trusted issuer certificates for testing. - Changed
invalidReasonsfrom descriptive messages to codes exposed throughInvalidReason. - Issuer results now return a
certificatesarray instead of a singlecertificate. Each certificate includes its trust and revocation results. Documents without an identified issuer returnissuer: null. - Browser requests now require
DigitalCredential.userAgentAllowsProtocol()for protocol detection.
Issuer trust and revocation
- Upgraded to
trusted-issuer-registry0.2.1 for issuer trust evaluation. - Added support for user-provided PEM issuer certificates, with optional issuer metadata and display settings.
- Added configurable CRL revocation checks through
RevocationCheckMode.SKIP,BEST_EFFORT, andREQUIRED. The default isSKIP. - Added per-verifier timeout and cache configuration through
trustedIssuerRegistry. - Added public
TrustList,RevocationCheckMode,InvalidReason, andUntrustedReasonconstants. - Default registry trust lists are Universal Verify and AAMVA. Setting
trustLists: []skips registry lookups while allowing user-provided certificates. - Trust evaluation now checks document signer and issuer certificate validity periods and requires authorization for government-issued identity documents.
- Evaluates all available issuer certificates, allowing a valid certificate to establish trust when another is expired.
- Added document-level
untrustedReasonsand individual issuer certificate results.
Protocols and document support
- Requests now include all protocols supported by the browser without modifying the caller’s request object.
- OpenID4VP requests treat multiple document types as alternatives using DCQL
credential_sets. - Added
DocumentType.EU_AGE_VERIFICATION, supporting age-over-18, age-over-21, and portrait claims. - Updated Japan My Number Card claim mappings, including document number and portrait fields, and removed unsupported mappings.
- Added bundled and minified bundled builds for direct browser use.
Demo and documentation
- Added custom PEM certificate input and registry trust-list selection to the demo.
- Updated sample code to reflect selected options and use exported constants.
- Added a claim support matrix.
- Updated documentation, favicons, dependencies, and regression coverage.
Updating from 0.1.0
import { Verifier, generateNonce, generateJWK } from 'id-verifier';
const verifier = new Verifier();
const nonce = generateNonce();
const jwk = await generateJWK();
const request = verifier.createWebCredentialsRequest({
documentTypes,
claims,
nonce,
jwk
});
const credentials = await verifier.requestCredentials(request);
const result = await verifier.processCredentials(credentials, {
nonce,
jwk,
origin
});Configure trust through new Verifier({ trustLists, trustedIssuerRegistry }), and update result handling to use issuer.certificates, InvalidReason, and UntrustedReason.
Full Changelog: 0.1.0...0.2.0