pub async fn resolve_remote<F>(
fetcher: &F,
cache: &TokenCache,
provider: &str,
margin_ms: u64,
) -> Result<BrokerToken, String>where
F: TokenFetcher,Expand description
Resolve a provider token via cache-or-fetch, returning the full
BrokerToken (access + expiry). The runtime needs the expiry to drive its
in-memory refresh trigger. NEVER touches a refresh token or auth.json.