Files
musyz-mobile/core
Yuriy PanovandClaude Opus 5.5 d085c169fb Keep the sign-in through a 403 or an expired token
Any 403 counted as a rejected token: one refused track, playlist or CDN file
signed the user out and deleted the stored credentials, and a 403 from
/get-file-info skipped the MP3 fallback. A 403 is now its own error that only
fails that request, and at start-up it shows the unreachable screen with the
credentials kept.

The token was also only refreshed when the app started, so one expiring while
the app ran, as it can on a TV left on for weeks, signed the user out with a
good refresh token in hand. Requests now renew the token on a 401 and try
once more; requests rejected together share one refresh, the rotated tokens
are saved, and only a refused refresh token or a second 401 signs out. The
fix is in core, so the TV app gets it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 11:57:57 +06:00
..