Skip to main content

spawn_refresh_task

Function spawn_refresh_task 

Source
pub fn spawn_refresh_task(
    flow: AuthFlow,
    cred: Arc<LiveCredential>,
    config: Config,
) -> RefreshTaskHandle
Expand description

Spawn a background task that re-executes the auth flow before the token expires. Writes the new token into cred.value so all in-flight requests automatically pick it up on the next read.