Skip to main content

Module auth

Module auth 

Source
Expand description

OAuth token management for the Questrade API.

Structs§

CachedToken
Pre-existing token state that can be passed to TokenManager::new to skip the initial token refresh when a valid cached token is available.
TokenManager
Manages Questrade OAuth tokens with auto-refresh.
TokenResponse
Token response from the Questrade OAuth endpoint.

Type Aliases§

OnTokenRefresh
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).