Skip to content

Fix authentication flow bugs#26

Merged
Jackson57279 merged 1 commit intomy-new-feature-branchfrom
cursor/fix-authentication-flow-bugs-6953
Jul 8, 2025
Merged

Fix authentication flow bugs#26
Jackson57279 merged 1 commit intomy-new-feature-branchfrom
cursor/fix-authentication-flow-bugs-6953

Conversation

@Jackson57279
Copy link
Owner

Remove excessive debug logs and fix authentication timeout logic.

The timeout logic was prematurely resetting the loading state and user, potentially clearing valid sessions.

…vider

Co-authored-by: dogesman098 <dogesman098@gmail.com>
@vercel
Copy link

vercel bot commented Jul 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zapdev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 5:59am

@Jackson57279 Jackson57279 merged commit 132b178 into my-new-feature-branch Jul 8, 2025
5 checks passed
@Jackson57279 Jackson57279 deleted the cursor/fix-authentication-flow-bugs-6953 branch July 8, 2025 05:59
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Timeout Captures Initial State, Prematurely Clears Session

The if (isMounted && loading) condition added to the global timeout is ineffective. Due to the useEffect's empty dependency array, the loading variable captured within the setTimeout callback is always its initial true value. This causes the 5-second timeout to prematurely set loading to false and user to null, even after successful authentication, contradicting the PR's goal of preventing premature session clearing.

components/SupabaseProvider.tsx#L38-L39

https://github.com/otdoges/zapdev/blob/a3cd439b96121b1111b4fbbe602f03909636e73f/components/SupabaseProvider.tsx#L38-L39

Fix in CursorFix in Web


BugBot free trial expires on July 22, 2025
You have used $0.00 of your $5.00 spend limit so far. Manage your spend limit in the Cursor dashboard.

Was this report helpful? Give feedback by reacting with 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants