Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongo/src/auth/base.ts>AuthContext

MongoDB driver for Deno
Very Popular
Go to Latest
class AuthContext
import { AuthContext } from "https://deno.land/x/mongo@v0.31.1/src/auth/base.ts";

Context used during authentication

Constructors

new
AuthContext(
protocol: WireProtocol,
credentials: Credential | undefined,
options: ConnectOptions,
)

Properties

optional
credentials: Credential

The credentials to use for authentication

optional
nonce: Uint8Array

A random nonce generated for use in an authentication conversation

options: ConnectOptions

The options passed to the connect method

protocol: WireProtocol

The connection to authenticate

optional
response: Document

A response from an initial auth attempt, only some mechanisms use this (e.g, SCRAM)