@slide-computer/signer-transport-auth-client
v3.6.4
Published
JavaScript and TypeScript library to communicate with Internet Identity on the Internet Computer
Downloads
784
Maintainers
Readme
@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) => {
// Process incoming responses
});
// Send outgoing requests
channel.send(JSON_RPC_REQUEST);