import { type mongo } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { Credential } = mongo;
Properties
The username to authenticate with. This applies to all mechanisms but may be omitted when authenticating via MONGODB-X509.
The database used to authenticate. This applies to all mechanisms and defaults to "admin" in SCRAM authentication mechanisms and "$external" for GSSAPI, MONGODB-X509 and PLAIN.