pub fn exchange_form_body(
subject_token: &str,
subject_token_type: &str,
client_id: &str,
resource: &str,
) -> StringExpand description
Build the application/x-www-form-urlencoded body for an RFC 8693 exchange.
#1425: the body now carries the required public client_id
(BROWSER_PUBLIC_CLIENT_ID) and is sent alongside a DPoP proof
header for sender-bound exchange. #1425 r2 P2: the body also carries the
RFC 8707 resource the caller is targeting — the browser always knows
this (it is the same origin fetch_exchange_token is calling), so the
contract is explicit rather than the server inferring a default. grant_type
and the subject_token_type constant are URL-safe; subject_token,
client_id, and resource are percent-encoded defensively.