Skip to main content

OnTokenRefresh

Type Alias OnTokenRefresh 

Source
pub type OnTokenRefresh = Arc<dyn Fn(TokenResponse) + Send + Sync>;
Expand description

Callback invoked whenever a token refresh completes successfully. Receives the full TokenResponse; the caller is responsible for persisting the new refresh_token (Questrade refresh tokens are single-use).

Aliased Typeยง

pub struct OnTokenRefresh { /* private fields */ }