mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
A revoked refresh token returns HTTP 400 with an OAuth body of `error: invalid_grant` from the token endpoint. The status-only classifier buckets every 400 as persistent, so the connection never prompts a reconnect even though the grant is gone. Store the upstream OAuth error on WhoopApiError and lift a 400 invalid_grant to reauth_required in classifyWhoopError; every other 400 (a malformed request, invalid_client) stays persistent.