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

credsAuthenticator

import { credsAuthenticator } 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. This is a convenience Authenticator that parses the specified creds and delegates to the jwtAuthenticator.

function credsAuthenticator(creds: Uint8Array | (() => Uint8Array)): Authenticator;
§
credsAuthenticator(creds: Uint8Array | (() => Uint8Array)): Authenticator
[src]

§Parameters

§
creds: Uint8Array | (() => Uint8Array)
[src]
  • the contents of a creds file or a function that returns the creds