Files
telecom-platform/apps/web-dashboard/src/lib
nutcas3 9e7b46c380 feat: Add authentication API client with JWT token management and auto-redirect on 401
- Add setAuthToken, getAuthToken, clearAuthToken functions with localStorage persistence
- Add Authorization Bearer token header to all API requests in apiFetch
- Add 401 status handling with automatic token clearing and redirect to /login
- Add auth API methods (login, register, refresh, logout, profile, changePassword)
- Add authentication types (LoginRequest, RegisterRequest, AuthResponse, User, ChangePassword
2026-04-25 05:25:21 +03:00
..