Module auth

Module auth 

Source
Expand description

Authentication state and token refresh for Deribit WebSocket connections.

Structs§

AuthState
Authentication state storing OAuth tokens.

Constants§

DERIBIT_DATA_SESSION_NAME
Session name for Deribit WebSocket data client authentication.
DERIBIT_EXECUTION_SESSION_NAME
Session name for Deribit WebSocket execution client 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.