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

nkeyAuthenticator

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

Returns an Authenticator that returns a NKeyAuth based that uses the specified seed or function returning a seed.

function nkeyAuthenticator(seed?: Uint8Array | (() => Uint8Array)): Authenticator;
§
nkeyAuthenticator(seed?: Uint8Array | (() => Uint8Array)): Authenticator
[src]

§Parameters

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