Skip to main content

bearer_authorized

Function bearer_authorized 

Source
pub(crate) fn bearer_authorized(expected: &str, header: Option<&str>) -> bool
Expand description

Constant-time bearer compare. Length mismatches fail without comparing bytes.