@slide-computer/signer-transport-auth-client
JavaScript and TypeScript library to communicate with Internet Identity on the Internet Computer.
Installation
Using AuthClientTransport:
npm i --save @slide-computer/signer-transport-auth-client
In the browser:
import { AuthClientTransport } from "@slide-computer/signer-transport-auth-client";
To create an AuthClient transport, run
const transport = await AuthClientTransport.create();
Either use with @slide-computer/signer
const signer = new Signer({transport});
Or directly in your custom implementation
const channel = await transport.establishChannel();
const listener = channel.registerListener((response) => {
});
channel.send(JSON_RPC_REQUEST);