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

Function SASLFinal

cf/src/connection.js:743–749  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

erroredFunction · 0.70

Tested by

no test coverage detected