Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
function jwtAuthenticator
import { jwtAuthenticator } from "https://deno.land/x/natsws@v1.28.0/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