Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function jwtAuthenticator
import { jwtAuthenticator } from "https://deno.land/x/natsws@v1.29.2/src/nats-base-client.ts";

Returns an Authenticator function that returns a JwtAuth. If a seed is provided, the public key, and signature are calculated.

Parameters

ajwt: string | (() => string)
  • the jwt
optional
seed: Uint8Array | (() => Uint8Array)
  • the optional nkey seed