1.0.0 • Published 11 months ago

@erwijet/notary v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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/notary

Usage

// 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.

1.0.0

11 months ago