Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function usernamePasswordAuthenticator
import { usernamePasswordAuthenticator } from "https://deno.land/x/natsws@v1.29.0/src/mod.ts";

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

Parameters

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