pub fn extract_credential<'a>(
auth_header: &'a str,
auth_type: &str,
) -> Option<&'a str>Expand description
The reference extract_credential: the credential of an
authorization header value under a scheme.
"bearer" requires the exact Bearer prefix and "basic" the exact
Basic prefix (each carrying the remainder as the credential); any
other scheme carries the whole header value and fails only when empty.
None means the reference returned a failure reason.