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

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

Parameters

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