def code
import bend-kit-oauth2@0.11.0.1/oauth2.bend as Oauth2import Base
import bend-kit-hairpin@0.13.0.1/hairpin.bend as Hairpin
196# RFC 6749 §4.1.3 with RFC 7636 §4.5: the code from callback, the same redirect_uri, and the verifier.
197def code(h: Hairpin.Client, cfg: Config, +code: String, +redirect: String, +verifier: String) ->
198 IO(Hairpin.Client & Result<&1, &1, Err, Token>):
199 grant(h, cfg, field(field(field(form("grant_type", "authorization_code"), "code", code), "redirect_uri", redirect), "code_verifier", verifier), "")
Uses (11)
Used by (0)
No other definition uses this definition.