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

    Class SHCIssuer

    Issues new SMART Health Cards from FHIR Bundles.

    Security Warning: Issue/sign on a secure backend only; never expose the private key in browsers.

    Index

    Constructors

    Methods

    Constructors

    • Creates a new SHCIssuer instance.

      Parameters

      Returns SHCIssuer

      // Using PEM format keys
      const issuer = new SHCIssuer({
      issuer: 'https://your-healthcare-org.com',
      privateKey: privateKeyPKCS8String, // ES256 private key in PKCS#8 format
      publicKey: publicKeySPKIString, // ES256 public key in SPKI format
      });

      // Using JsonWebKey format
      const issuerJWK = new SHCIssuer({
      issuer: 'https://your-healthcare-org.com',
      privateKey: { kty: 'EC', crv: 'P-256', x: '...', y: '...', d: '...' },
      publicKey: { kty: 'EC', crv: 'P-256', x: '...', y: '...' },
      });

    Methods