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

Function authentication

packages/sql/pg/test/PgConnection.in-process.test.ts:54–55  ·  view source on GitHub ↗
(method: number, payload: Uint8Array = Buffer.alloc(0))

Source from the content-addressed store, hash-verified

52}
53
54const authentication = (method: number, payload: Uint8Array = Buffer.alloc(0)): Buffer =>
55 backendMessage("R", Buffer.concat([int32(method), payload]))
56
57const authenticationOk = authentication(0)
58const backendKeyData = backendMessage("K", Buffer.concat([int32(1234), int32(5678)]))

Callers 1

Calls 2

backendMessageFunction · 0.70
int32Function · 0.70

Tested by

no test coverage detected