1.1.2 • Published 9 months ago
@erwijet/notary v1.1.2
Notary Client Bindings
Although RPC to a Notary server may be facilitated via regular HTTP calls, for added DX and typesaftey, you can use these official client bindings.
Installation
$ npm install @erwijet/notaryUsage
// src/shared/notary.ts
import { createNotary } from "@erwijet/notary";
export const notary = createNotary({
url: "https://notary.example.com",
client: "<client-name-as-configured-in-the-notary-portal>",
key: "<associated-client-key>",
callback: "http://localhost:8080/callback",
});Example
Check out the example project for a demo app using react + vite + tanstack router + notary auth.