Skip to content

slovensko-digital/autogram-sdk

Repository files navigation

Autogram SDK - use Autogram signer from web

Installation

npm install autogram-sdk

Usage

import { FullClient } from ".";

const client = new FullClient();

const { content, issuedBy, signedBy } = await client.sign(
  {
    content: "hello world",
    filename: "hello.txt",
  },
  {
    level: "XAdES_BASELINE_B",
    container: "ASiC_E",
  },
  "text/plain",
  true
);

Usage on web

<script src="dist/index.global.js"></script>
<script>
  const client = new AutogramSDK.FullClient();

  const { content, issuedBy, signedBy } = await client.sign(
    {
      content: "hello world",
      filename: "hello.txt",
    },
    {
      level: "XAdES_BASELINE_B",
      container: "ASiC_E",
    },
    "text/plain",
    true
  );
</script>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published