Kill the Clipboard - SMART Health Cards Library - v1.0.0
    Preparing search index...

    Class SHCReader

    Reads and verifies SMART Health Cards from various sources.

    Index

    Constructors

    Methods

    Constructors

    • Creates a new SHCReader instance.

      Parameters

      Returns SHCReader

      // Using PEM format keys
      const reader = new SHCReader({
      publicKey: publicKeySPKIString, // ES256 public key in SPKI format
      });

      // Using JsonWebKey format
      const readerJWK = new SHCReader({
      publicKey: { kty: 'EC', crv: 'P-256', x: '...', y: '...' },
      });

      // Using automatic key resolution from issuer JWKS
      const readerAuto = new SHCReader({
      publicKey: null, // Will resolve from issuer's /.well-known/jwks.json
      });

    Methods