Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

jwtAuthenticator

import { jwtAuthenticator } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.27.0/nats-base-client/internal_mod.ts";

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

function jwtAuthenticator(ajwt: string | (() => string), seed?: Uint8Array | (() => Uint8Array)): Authenticator;
§
jwtAuthenticator(ajwt: string | (() => string), seed?: Uint8Array | (() => Uint8Array)): Authenticator
[src]

§Parameters

§
ajwt: string | (() => string)
[src]
  • the jwt
§
seed?: Uint8Array | (() => Uint8Array) optional
[src]
  • the optional nkey seed