use Duration;
use crateDittoAuthenticator;
/// Implement this trait for a type in order to use
/// [`DittoConfigConnect::Server`] mode with the old callback-based
/// authentication API.
///
/// **v5 note:** This trait is superseded by [`DittoAuthExpirationHandler`] in v5.
/// Use `DittoAuthExpirationHandler` with [`DittoConfigConnect::Server`] mode instead.
///
/// [`DittoConfigConnect::Server`]: crate::DittoConfigConnect::Server
/// [`DittoAuthExpirationHandler`]: crate::DittoAuthExpirationHandler