MCPcopy Create free account
hub / github.com/Effect-TS/effect / password

Function password

packages/sql/pg/src/PgConnection.ts:2482–2491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2480 )
2481
2482 const password = (): string | undefined => {
2483 if (resolvedPassword === undefined) {
2484 failAuth(
2485 new Error("The server requested password authentication"),
2486 "PgConnection: No password configured"
2487 )
2488 return undefined
2489 }
2490 return resolvedPassword
2491 }
2492
2493 const handleMessage = (message: PgProtocol.BackendMessage<unknown>): void => {
2494 switch (message._tag) {

Callers 1

handleMessageFunction · 0.70

Calls 1

failAuthFunction · 0.85

Tested by

no test coverage detected