Module auth

Module auth 

Source
Expand description

Authentication state and token refresh for Deribit WebSocket connections.

Structs§

AuthState
Authentication state storing OAuth tokens.

Constants§

DEFAULT_SESSION_NAME
Default session name for Deribit WebSocket authentication.

Functions§

send_auth_request
Sends an authentication request using client_signature grant type.
spawn_token_refresh_task
Spawns a background task to refresh the authentication token before it expires.