//! Extract a bearer token from an axum `Request` for use with
//! `backbone_auth::AuthMiddleware::authenticate(token: &str)`.
//!
//! The schema generator emits middleware that passes `&Request` directly to
//! `authenticate`, but the framework signature wants a token string. This
//! helper bridges the two.
use Request;
/// Pull the bearer token out of the `Authorization` header, if present.
/// Returns the empty string when no header is present so the call site can
/// still hand a `&str` to `authenticate(...)` without a separate Option dance.