atproto/oauth/transport
Shared OAuth transport: a form-encoded POST carrying a DPoP proof, with the
mandatory nonce retry (first attempt no nonce, retry with the server’s
DPoP-Nonce on use_dpop_nonce). A thin sync wrapper over the effect kernel
in atproto/oauth/core/transport.
Values
pub fn dpop_nonce_challenge(
resp: response.Response(String),
) -> option.Option(String)
The DPoP nonce a server is asking us to use, if it rejected the request with
use_dpop_nonce. Pure inspection of an already-received response.
pub fn post_form_with_dpop(
client: xrpc.Client,
url: String,
form: List(#(String, String)),
dpop_key: gose.Key(String),
) -> Result(response.Response(String), String)