pub trait BearerTokenResolver {
// Required method
fn resolve(&self, request: &Request<()>) -> Result<UnverifiedJwt, AuthError>;
}Expand description
Trait for resolving bearer tokens (JWT) from HTTP requests.
The trait accepts a reference to the request (without the body) to allow implementations to extract tokens from headers, query parameters, or other parts of the request.