zpg Logo thienpow / zpg Authentication

Authentication

zpg handles the PostgreSQL authentication flow automatically during the connection.connect() process based on the server’s requirements and the provided zpg.Config.

Supported Methods

Unsupported Methods

The following authentication methods advertised by PostgreSQL are not currently supported by zpg and will result in an error during connection if requested by the server:

Configuration

Authentication is primarily configured via zpg.Config:

If the server supports multiple methods, zpg will attempt to use SCRAM-SHA-256 if available and a password is provided. If the server only offers an unsupported method, the connection will fail.

On This Page