pub type TokenProvider = Arc<dyn Fn() -> TokenFuture + Send + Sync>;Expand description
An async callback that yields a fresh credential, for rotating tokens. Send + Sync on native
(the provider is shared across tasks); vacuous on wasm32, matching TokenFuture.
Aliased Typeยง
pub struct TokenProvider { /* private fields */ }