Skip to main content

dial_with_token_provider

Function dial_with_token_provider 

Source
pub fn dial_with_token_provider<S>(
    target: &TransportConfig,
    signer: S,
    server_verifying_key: Option<VerifyingKey>,
    token_provider: Option<Arc<dyn Fn() -> Option<String> + Send + Sync>>,
) -> Result<Arc<dyn RpcClient>>
where S: Signer + 'static,
Expand description

Dial with a JWT provider evaluated for each request, so long-lived clients observe credential renewal without rebuilding their transport.