pub type AuthRefreshCallback = Arc<dyn Fn() -> Pin<Box<dyn Future<Output = Result<AuthProvider, KalamLinkError>> + Send>> + Send + Sync>;Expand description
Async callback that resolves fresh AuthProvider credentials.
Called by the executor when a query requires a login exchange or returns
TOKEN_EXPIRED.
Implementations should obtain a fresh JWT (e.g. via login or dynamic
auth provider) and return it.
Aliased Type§
pub struct AuthRefreshCallback { /* private fields */ }