Commit Graph

44 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
3c70579ac9 Fix: Deduplicate toast and add session dismissal 2025-10-14 16:47:49 +00:00
gpt-engineer-app[bot]
69c16c2b1e feat: Add persistent sign-in toast for orphaned passwords 2025-10-14 16:01:12 +00:00
gpt-engineer-app[bot]
9135b5e5c9 Fix: Wrap useAuth in AuthProvider 2025-10-14 14:05:48 +00:00
gpt-engineer-app[bot]
23f7cbb9de Refactor: Implement full authentication overhaul 2025-10-14 14:01:17 +00:00
gpt-engineer-app[bot]
ccfa83faee feat: Implement MFA Step-Up for OAuth 2025-10-14 13:52:11 +00:00
gpt-engineer-app[bot]
7aa219efe5 Implement MFA Enforcement 2025-10-14 13:45:59 +00:00
gpt-engineer-app[bot]
149c0704fe Refactor: Simplify auth and profile handling 2025-10-13 17:22:56 +00:00
gpt-engineer-app[bot]
be26c08640 Fix: Resolve stale state issue in auth profile fetching 2025-10-13 17:17:02 +00:00
gpt-engineer-app[bot]
5863a49d3a Fix avatar loading by preventing profile state race condition 2025-10-13 17:13:37 +00:00
gpt-engineer-app[bot]
7d6c0aabcf Fix: Correct provider hierarchy and simplify auth 2025-10-13 17:09:45 +00:00
gpt-engineer-app[bot]
083964ff41 Refactor: Simplify auth loading state 2025-10-13 17:06:03 +00:00
gpt-engineer-app[bot]
8b54a2303b Fix: Synchronize loading state for initial session 2025-10-13 17:02:40 +00:00
gpt-engineer-app[bot]
daf4f6bf19 Fix: Synchronize user and profile state updates 2025-10-13 17:01:15 +00:00
gpt-engineer-app[bot]
8b1758e5e9 feat: Add production-safe logging for avatar debugging 2025-10-13 16:57:29 +00:00
gpt-engineer-app[bot]
233e8efd62 Fix: Correct avatar display in header 2025-10-13 13:53:15 +00:00
gpt-engineer-app[bot]
e7aa74287a feat: Add diagnostic logging for tab focus issue 2025-10-12 23:57:23 +00:00
gpt-engineer-app[bot]
ffb0297854 feat: Implement auth logging and session verification optimizations 2025-10-12 19:02:59 +00:00
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