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

Function scramContinue

packages/sql/pg/src/PgAuth.ts:327–338  ·  view source on GitHub ↗
(
  state: ScramFirst,
  challenge: Uint8Array,
  saltedPassword?: ScramSaltedPassword | undefined
)

Source from the content-addressed store, hash-verified

325 * @since 4.0.0
326 */
327export const scramContinue = (
328 state: ScramFirst,
329 challenge: Uint8Array,
330 saltedPassword?: ScramSaltedPassword | undefined
331): Result.Result<
332 {
333 readonly state: ScramFinal
334 readonly response: Uint8Array
335 readonly saltedPassword: ScramSaltedPassword
336 },
337 AuthError
338> => result(() => scramContinueUnsafe(state, challenge, saltedPassword))
339
340/**
341 * Verifies the server signature carried by `AuthenticationSASLFinal`. Returns

Callers

nothing calls this directly

Calls 2

scramContinueUnsafeFunction · 0.85
resultFunction · 0.70

Tested by

no test coverage detected