Skip to main content
Module

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

MongoDB driver for Deno
Extremely Popular
Latest
class AuthContext
import { AuthContext } from "https://deno.land/x/mongo@v0.33.0/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

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)