pub type RefreshFn = Box<dyn Fn() -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send>> + Send + Sync>;
Type alias for refresh function to reduce complexity
pub struct RefreshFn(/* private fields */);