28 Commits

Author SHA1 Message Date
Usman Baig
ad806e0427 fix: remove reload-based stale build recovery to stop login loop
window.location.reload() causes infinite loops when the CDN keeps
serving cached assets. Instead, silently treat Server Action failures
as no-session — the OAuth flow uses full navigations (window.location.href)
which naturally fetch fresh content from the server on return.
2026-03-07 20:02:58 +01:00
Usman Baig
6338d1dfe7 fix: prevent infinite reload loop on stale build recovery
Use sessionStorage guard so the hard reload only fires once. If the
reload doesn't fix it (CDN still serving stale JS), fall through
gracefully instead of looping forever.
2026-03-07 19:55:16 +01:00
Usman Baig
d2dfe62993 fix: recover gracefully from stale Server Action hashes after deployment
Wrap all Server Action calls (getSessionAction, exchangeAuthCode,
logoutAction) in try-catch so a cached browser bundle with old action
IDs triggers a hard reload instead of an infinite loading spinner.
2026-03-07 19:37:41 +01:00
Usman Baig
1edd78672e fix: treat session-flow callback (no state) as valid when coming from auth hub
Made-with: Cursor
2026-02-26 14:26:54 +01:00
Usman Baig
bd17bb45c4 chore: update CHANGELOG.md for version 0.11.1-alpha, highlighting secure sign-in improvements and update package version 2026-02-23 10:35:08 +01:00
Usman Baig
2d0307d328 fix: enhance error logging by replacing console.error with a centralized logger across the application to improve security and maintainability 2026-02-22 20:57:21 +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
03fcfba180 chore: update @ciphera-net/ui dependency to version 0.0.49 and refactor terminology in layout content for consistency 2026-02-09 09:51:19 +01:00
Usman Baig
ead1e006dc fix: validate returnTo parameter in auth callback and update default organization name in welcome page 2026-02-09 09:38:44 +01:00
Usman Baig
a3e9bac119 fix: reset processing state on retry in auth callback and update loading overlay title in welcome page 2026-02-09 09:15:55 +01:00
Usman Baig
3e8edd188a fix: fetch full user profile after login in auth callback and welcome page to ensure correct display name 2026-02-08 21:36:42 +01:00
Usman Baig
30dcd5ddbc fix: update auth callback routing to redirect to '/welcome' for pending checkouts 2026-02-08 14:29:33 +01:00
Usman Baig
c715bc4ce4 refactor: update routing logic to redirect to '/welcome' after auth callback and handle organization checks 2026-02-08 13:53:54 +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
559c8a74dd feat: implement pending checkout handling in PricingSection; redirect users based on checkout state in AuthCallbackContent 2026-01-30 23:00:46 +01:00
Usman Baig
aaf224a278 refactor: migrate UI components to @ciphera-net/ui v0.0.11 2026-01-23 18:35:17 +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
c5d116b334 refactor(loading): enhance LoadingOverlay integration in HomePage and AuthCallback for consistent loading experience 2026-01-22 18:40:56 +01:00
Usman Baig
12292b62a8 refactor(loading): streamline LoadingOverlay usage in HomePage and AuthCallback to return null during loading states 2026-01-22 18:36:03 +01:00
Usman Baig
89bc9ed802 refactor(auth): streamline LoadingOverlay usage in AuthCallback for a seamless loading experience 2026-01-22 15:46:50 +01:00
Usman Baig
13f2950b23 fix(loading): update LoadingOverlay component to support portal prop and adjust loading states in HomePage and AuthCallback 2026-01-22 15:40:12 +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
0c3fd5f766 refactor: Replicate Drop's authentication system exactly 2026-01-16 14:11:14 +01:00
Usman Baig
4e9cf59828 Fix: Use OAuth authorize flow, show login prompt instead of auto-redirect 2026-01-16 13:56:37 +01:00
Usman Baig
8e10a05eb1 Initial commit: Analytics frontend implementation 2026-01-16 13:14:19 +01:00