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

Parameters

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