mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
Fixed playlist loading failure by ensuring the auth token is automatically restored from localStorage when ApiClient initializes. Previously, the token was stored but never restored, causing 401 Unauthorized errors on API calls. Added _restoreTokenFromStorage() method to ApiClient constructor to load and apply stored token immediately on app startup. This ensures all API calls (including playlist fetching) have proper authentication. Fixes: "I still don't have a playlist" issue where playlists were not loading Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>