1
2use crate::input::AuthInput;
3use crate::error::{AuthError};
4use crate::identity::Identity;
5use std::future::Future;
6use std::pin::Pin;
7
8pub type Strategy = Box<
9 dyn Fn(AuthInput) -> Pin<Box<dyn Future<Output = Result<Identity, AuthError>> + Send>>
10 + Send
11 + Sync,
12>;