Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function usernamePasswordAuthenticator
import { usernamePasswordAuthenticator } from "https://deno.land/x/natsws@v1.28.0/src/nats-base-client.ts";

Returns a user/pass authenticator for the specified user and optional password

Parameters

user: string | (() => string)
optional
pass: string | (() => string)