mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
54314d465c
Introduce a new TokenManager to handle token rotation, status tracking, and automatic retries with exponential backoff for API requests. This change aims to improve the reliability API interactions by intelligently managing tokens and gracefully handling request failures. Update API request functions to utilise the new TokenManager. This commit also adds configuration options for max retries, base timeout, and max backoff time to fine-tune the retry behavior.