pub type RejectionCheck = Arc<dyn Fn(&Response<Bytes>) -> bool + Send + Sync>;Expand description
Decides whether a failed response rejected the token a Credential::Refreshable attached
(for example a 401 whose problem code is expired_token), rather than refusing the call for
some other reason, such as a wrong password. It reads the response with its body buffered as
the operation’s error reads it: whole when it holds at most ClientConfig::max_error_body
bytes, and otherwise only up to the first chunk past that cap.
Send + Sync on native; vacuous on wasm32, matching TokenProvider.
Aliased Type§
pub struct RejectionCheck { /* private fields */ }