def first.with

bend-kit-postgres@0.3.0.0 · scram.bend:40

import bend-kit-postgres@0.3.0.0/scram.bend as Scram
import Base

40# The client-first-message for a nonce: gs2 header "n,," (no channel binding), then the bare part.
41def first.with(+user: String, +nonce: String) -> First & String:
42  +bare = "n=" ++ saslname(user) ++ ",r=" ++ nonce
43  (First{bare, nonce}, "n,," ++ bare)

Uses (6)

Used by (1)