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

Function SASLFinal

cjs/src/connection.js:741–747  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

erroredFunction · 0.70

Tested by

no test coverage detected