Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function jwtAuthenticator
import { jwtAuthenticator } from "https://deno.land/x/natsws@v1.28.0/src/mod.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