Files
fasto/services/dataService.ts
Cauê Faleiros 22a1228a60
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m58s
fix: resolve login persistence bug and aggressive logout on network blips
- Updated Login.tsx to automatically redirect users to the dashboard if a valid token is already present in localStorage.

- Refactored getUserById to properly throw server/network errors instead of silently returning undefined.

- Updated AuthGuard in App.tsx to gracefully handle network errors without destroying the user's valid localStorage tokens.
2026-03-17 15:40:13 -03:00

20 KiB