Skip to content

v13.0.1

Choose a tag to compare

@thematrixdev thematrixdev released this 02 Mar 13:57
· 134 commits to master since this release
2499098

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 100001 to the token refresh trigger condition alongside existing code 906
  • Added fallback: attempt refresh on any 403 with unreadable response body when a refresh token is available
  • Bumped manifest version to 13.0.1