Commit Graph

27 Commits

Author SHA1 Message Date
pac7
0b8fe60823 Improve authentication state management and user session handling
Refactors the `AuthProviderComponent` in `useAuth.tsx` to enhance the handling of Supabase authentication state changes. Updates console logs for better debugging, prioritizes setting pending email state before early returns, and refines the logic for `SIGNED_IN`, `INITIAL_SESSION`, and `SIGNED_OUT` events. Also defers Novu updates and profile fetches to prevent blocking the authentication process.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e7030bef-c72b-4948-9378-ee5e345d91ce
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/e7030bef-c72b-4948-9378-ee5e345d91ce/zQglahT
2025-10-12 17:05:15 +00:00
pacnpal
0a9b163e81 fix: update vite version and improve session handling in useAuth hook
- Updated vite from version 5.4.19 to 7.1.9 in package.json for better performance and features.
- Enhanced session verification logic in useAuth hook to check for session.user before setting user state.
2025-10-12 11:45:13 -04:00
pacnpal
e3331dae96 Fix: Ensure loading state is set correctly for session events in AuthProvider 2025-10-12 11:31:01 -04:00
pacnpal
472813d1ea [dyad] Fixed auth loading state and moderation queue refresh issues - wrote 3 file(s) + extra files edited outside of Dyad 2025-10-12 11:17:24 -04:00
gpt-engineer-app[bot]
f9e12596c7 Fix auth loading state after logout 2025-10-11 16:48:27 +00:00
gpt-engineer-app[bot]
4d40bb7569 Fix: Resolve perpetual loading state 2025-10-11 16:28:30 +00:00
gpt-engineer-app[bot]
c0a5c3479d Fix: Resolve authentication loading state issues 2025-10-11 16:26:10 +00:00
gpt-engineer-app[bot]
0330fbd1f3 Fix: Implement complete fix 2025-10-11 16:12:45 +00:00
gpt-engineer-app[bot]
f37b99a5f9 Reverted to commit 06ed528d76 2025-10-11 15:58:56 +00:00
gpt-engineer-app[bot]
1df9ada8ae Reverted to commit 96a961d95c 2025-10-11 15:58:11 +00:00
gpt-engineer-app[bot]
1e30dedca2 Reverted to commit db532afcef 2025-10-11 14:37:17 +00:00
gpt-engineer-app[bot]
be265632ad Reverted to commit 06ed528d76 2025-10-11 14:35:02 +00:00
gpt-engineer-app[bot]
5a00767914 Fix AuthProvider loading state bug 2025-10-11 14:29:30 +00:00
gpt-engineer-app[bot]
06ed528d76 Fix: Resolve authentication state recognition issues 2025-10-11 00:54:27 +00:00
gpt-engineer-app[bot]
9969fe2692 Fix: Implement iframe-compatible authentication 2025-10-10 23:52:43 +00:00
pac7
4718db4002 Improve authentication hook to avoid development refresh issues
Refactors the AuthProvider component in `src/hooks/useAuth.tsx` to properly export the component, addressing Fast Refresh compatibility warnings and improving developer experience.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: fe5b902e-beda-40fc-bf87-a3c4ab300e3a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:51:25 +00:00
pac7
994a07f4af Update user authentication to correctly track previous email addresses
Replaces `previousEmail` state with a ref (`previousEmailRef`) to accurately track the user's old email address during authentication flow, specifically for handling email change notifications.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a16cce43-1d93-4e5c-a1e6-6ca90e68cc4f
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 12:44:37 +00:00
pac7
1addcbc0dd Improve error handling and environment configuration across the application
Enhance input validation, update environment variable usage for Supabase and Turnstile, and refine image upload and auth logic for better robustness and developer experience.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cb061c75-702e-4b89-a8d1-77a96cdcdfbb
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/cb061c75-702e-4b89-a8d1-77a96cdcdfbb/ANdRXVZ
2025-10-07 14:42:22 +00:00
gpt-engineer-app[bot]
b778fc95f6 Refactor: Implement Phase 3C cleanup 2025-10-03 14:24:43 +00:00
gpt-engineer-app[bot]
c00f991b1e Fix: Prevent logout on email change cancellation 2025-10-01 16:39:52 +00:00
gpt-engineer-app[bot]
8453940656 Fix auth hook deadlock 2025-10-01 15:52:35 +00:00
gpt-engineer-app[bot]
5634dc4920 Refactor: Secure email confirmation flow 2025-10-01 15:50:27 +00:00
gpt-engineer-app[bot]
d556243ff6 Refactor: Enhance email change status handling 2025-10-01 15:45:05 +00:00
gpt-engineer-app[bot]
b327cefd1c Fix AuthProvider useState error 2025-09-29 16:36:09 +00:00
gpt-engineer-app[bot]
61d3f7e1ea Fix AuthProvider useState error 2025-09-29 15:46:30 +00:00
gpt-engineer-app[bot]
728f7c145e Fix authentication deadlock 2025-09-28 17:28:38 +00:00
gpt-engineer-app[bot]
3a4b52ec18 Add ride detail pages 2025-09-20 00:59:50 +00:00