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

Function scramInit

packages/sql/pg/src/PgAuth.ts:238–242  ·  view source on GitHub ↗
(options: {
  readonly password: string
  readonly nonce: string
})

Source from the content-addressed store, hash-verified

236 * @since 4.0.0
237 */
238export const scramInit = (options: {
239 readonly password: string
240 readonly nonce: string
241}): Result.Result<{ readonly state: ScramFirst; readonly response: Uint8Array }, AuthError> =>
242 result(() => scramInitUnsafe(options))
243
244/**
245 * Answers an `AuthenticationSASLContinue` challenge.

Callers

nothing calls this directly

Calls 2

scramInitUnsafeFunction · 0.85
resultFunction · 0.70

Tested by

no test coverage detected