Commit graph

7 commits

Author SHA1 Message Date
DESKTOP-RTLN3BA\$punk
e920923fa4 feat: implement auth token synchronization between Electron and web app
- Added IPC channels for getting and setting auth tokens in Electron.
- Implemented functions to sync tokens from localStorage to Electron and vice versa.
- Updated components to ensure tokens are retrieved from Electron when not available locally.
- Enhanced user authentication flow by integrating token management across windows.
2026-04-06 23:02:25 -07:00
CREDO23
7192bb1a85 Skip auth on public routes 2026-02-06 14:49:40 +02:00
CREDO23
a8e8b0e2fd Fix auto-refresh on 401 in base API service 2026-02-05 19:29:34 +02:00
CREDO23
f13345b226 Add logout with token revocation and loading states 2026-02-05 18:56:38 +02:00
CREDO23
233852b681 Switch refresh token storage from cookies to localStorage 2026-02-05 17:55:21 +02:00
DESKTOP-RTLN3BA\$punk
48fc70a08b chore: cleanup 2026-01-07 19:07:06 -08:00
DESKTOP-RTLN3BA\$punk
b2a97b39ce refactor: centralize authentication handling
- Replaced direct localStorage token access with a centralized `getBearerToken` function across various components and hooks to improve code maintainability and security.
- Updated API calls to use `authenticatedFetch` for consistent authentication handling.
- Enhanced user experience by ensuring proper redirection to login when authentication fails.
- Cleaned up unused imports and improved overall code structure for better readability.
2025-12-02 01:24:09 -08:00