Skip to main content
Module

x/postgres/connection/scram.ts>Client

PostgreSQL driver for Deno
Extremely Popular
Go to Latest
class Client
import { Client } from "https://deno.land/x/postgres@v0.17.0/connection/scram.ts";

Client composes and verifies SCRAM authentication messages, keeping track of authentication #state and parameters.

Constructors

new
Client(
username: string,
password: string,
nonce?: string,
)

Methods

Composes client-first-message

composeResponse(): Promise<string>

Composes client-final-message

receiveChallenge(challenge: string)

Processes server-first-message

receiveResponse(response: string)

Processes server-final-message