24 Commits

Author SHA1 Message Date
Usman Baig
ef21004519 fix: skip auth token refresh for public API endpoints
Public dashboard endpoints use password auth, not session tokens.
A 401 on /public/ should surface to the caller (for password prompt),
not trigger a token refresh that fails and shows "Session expired".
2026-03-22 13:47:02 +01:00
Usman Baig
8287a38b43 chore: add 429 errors 2026-03-16 11:06:41 +01:00
Usman Baig
9528eca443 fix: handle 204 No Content responses in API client
Prevent error toasts on successful delete operations by checking for
204 status before attempting to parse response body as JSON.
2026-03-15 12:23:05 +01:00
Usman Baig
1c26e4cc6c fix: resolve intermittent auth errors when navigating between tabs
Token refresh race condition: when multiple requests got 401 simultaneously,
queued retries reused stale headers and the initiator fell through without
throwing on retry failure. Now retries regenerate headers (fresh request ID
and CSRF token), and both retry failure and refresh failure throw explicitly.

SWR cache is now invalidated after token refresh so stale error responses
are not served from cache.
2026-03-13 10:52:02 +01:00
Usman Baig
c2d5935394 security: send X-CSRF-Token on all state-changing API requests (F-01) 2026-03-11 21:54:24 +01:00
Usman Baig
22bc18a7cc chore: update CHANGELOG.md to include Request ID tracing for debugging, enhancing request tracking across services, and update API client to propagate Request ID in headers 2026-02-27 17:26:08 +01:00
Usman Baig
b4b1348a94 chore: update CHANGELOG.md to include improvements in authentication flow, addressing CSRF handling and cookie management for seamless sign-in and enhanced security 2026-02-27 11:52:20 +01:00
Usman Baig
4cff0c621d feat: implement request deduplication and caching in API client for improved performance 2026-02-27 09:17:51 +01:00
Usman Baig
36774cc995 chore: update CHANGELOG.md to include smarter data fetching with request deduplication and caching for improved performance 2026-02-27 09:13:29 +01:00
Usman Baig
06f54176f1 refactor: enhance type safety by replacing any types with stricter types across the codebase, improving error handling and reducing potential bugs 2026-02-22 20:29:16 +01:00
Usman Baig
18d9f59e5d fix: correct organization context switching to ensure secure session storage when switching away from deleted organizations 2026-02-22 20:14:18 +01:00
Usman Baig
ae91147b6c chore: update @ciphera-net/ui dependency to version 0.0.57 in package.json and package-lock.json; refactor imports across multiple components for consistency 2026-02-17 20:49:55 +01:00
Usman Baig
de22c2da63 refactor: implement audit fetch trigger in OrganizationSettings to enhance data loading efficiency and improve filter responsiveness 2026-02-05 14:32:33 +01:00
Usman Baig
eaf02c853f fix: improve error handling across various components; utilize getAuthErrorMessage for consistent user-facing error messages 2026-02-03 19:31:26 +01:00
Usman Baig
af5d9631e5 fix: improve error handling in authentication flow; validate access token and format, and ensure proper state verification in callback 2026-02-01 21:07:17 +01:00
Usman Baig
b8a2e5ac3a feat: add legacy axios-style client for compatibility; implement post method with endpoint handling and error management 2026-01-30 22:54:54 +01:00
Usman Baig
3ca0bbd921 fix(auth): update comments in AuthCallback and API client for clarity on token handling and refresh process 2026-01-23 10:45:52 +01:00
Usman Baig
5d867dd519 refactor: update application name and related identifiers from Analytics to Pulse for consistent branding across the codebase 2026-01-19 17:20:01 +01:00
Usman Baig
d03a688695 fix: propagate API error data to handle protected dashboards correctly 2026-01-18 23:10:39 +01:00
Usman Baig
3e7273363b fix: resolve frontend build errors and enable credentials for options requests in backend 2026-01-18 21:32:47 +01:00
Usman Baig
2fda4667ed fix(cors): allow credentials on options requests and update frontend auth flow 2026-01-18 21:27:22 +01:00
Usman Baig
d4486f952f feat(security): switch auth to HttpOnly cookies and add server actions 2026-01-18 21:19:44 +01:00
Usman Baig
481a35b383 Fix: Add dashboard redirect, copy icon, create placeholder pages, update auth API URL 2026-01-16 13:52:45 +01:00
Usman Baig
8e10a05eb1 Initial commit: Analytics frontend implementation 2026-01-16 13:14:19 +01:00