def first.with
import bend-kit-postgres@0.3.0.0/scram.bend as Scramimport 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)