pub type VerifyFn = Arc<dyn Fn(String, String) -> Pin<Box<dyn Future<Output = Option<Claims>> + Send>> + Send + Sync>;Expand description
A boxed async function that maps (username, password) to Option<Claims>.
Return Some(claims) to allow the request through; None to reject with
401 Unauthorized.
Aliased Typeยง
pub struct VerifyFn { /* private fields */ }