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

x/postgres/connection/scram.ts>Client

PostgreSQL driver for Deno
Go to Latest
class Client
import { Client } from "https://deno.land/x/postgres@ls/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