b2ae5f18ad
- Added proper HTTP status check before JSON parsing in AnalyticsPage * Prevents "Unexpected token '<'" error when API returns HTML error pages * Throws proper error for non-OK responses - Enhanced API error handling to treat 403 as auth failure * Both 401 and 403 now trigger redirect to login page * Clears expired admin tokens automatically * Prevents users from staying on admin pages with expired sessions These fixes resolve: 1. JSON parse errors when fetching Umami config 2. 403 Forbidden errors not redirecting to login 3. Backend version display issues due to auth failures 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>