@slide-computer/signer-client
TypeScript icon, indicating that this package has built-in type declarations

1.9.0 • Public • Published

@slide-computer/signer-client

Authenticate with signers on the Internet Computer.


Installation

Using SignerClient:

npm i --save @slide-computer/signer

In the browser:

import { SignerClient } from "@slide-computer/signer-client";

To get started with the signerClient, run

const signerClient = await SignerClient.create({signer});

The signerClient can log in with

signerClient.login({
  // 7 days in nanoseconds
  maxTimeToLive: BigInt(7 * 24 * 60 * 60 * 1000 * 1000 * 1000),
  onSuccess: async () => {
    handleAuthenticated(signerClient);
  },
});

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i @slide-computer/signer-client

    Weekly Downloads

    5

    Version

    1.9.0

    License

    MIT

    Unpacked Size

    106 kB

    Total Files

    22

    Last publish

    Collaborators

    • sea-snake