MCPcopy Create free account
hub / github.com/porsager/postgres / SASLFinal

Function SASLFinal

deno/src/connection.js:744–750  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

742 }
743
744 function SASLFinal(x) {
745 if (x.toString('utf8', 9).split(b.N, 1)[0].slice(2) === serverSignature)
746 return
747 /* c8 ignore next 5 */
748 errored(Errors.generic('SASL_SIGNATURE_MISMATCH', 'The server did not return the correct signature'))
749 socket.destroy()
750 }
751
752 function Pass() {
753 return Promise.resolve(typeof options.pass === 'function'

Callers

nothing calls this directly

Calls 1

erroredFunction · 0.70

Tested by

no test coverage detected