Repository navigation
v13.0.1
Fix: Token refresh robustness
Issue 1: Wrong error code for refresh trigger
The CLP API returns error code 100001 ("LR access_token error") when the access token expires after ~1 hour. Previously, the refresh logic only checked for code 906.
Issue 2: 403 with connection closed
When the API returns 403 but the connection closes before the response body can be read, error_data stays None and the refresh condition was skipped entirely, causing tokens to be permanently cleared.
Changes
- Added code
100001to the token refresh trigger condition alongside existing code906 - Added fallback: attempt refresh on any 403 with unreadable response body when a refresh token is available
- Bumped manifest version to
13.0.1