Changes from background agent bc-fa95362b-9b8d-4180-acde-6fbfcaaefc1a - #48
Draft
Mtaasisi wants to merge 1 commit into
Draft
Changes from background agent bc-fa95362b-9b8d-4180-acde-6fbfcaaefc1a#48Mtaasisi wants to merge 1 commit into
Mtaasisi wants to merge 1 commit into
Conversation
This change consolidates authentication state change listeners into a single, reusable function. It also disables unnecessary Supabase auth configurations like `detectSessionInUrl` and `debug` to reduce console noise and improve performance. The `onAuthStateChange` function now only logs significant authentication events, further decluttering the console. Co-authored-by: xamuelhance10 <xamuelhance10@gmail.com>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❌ Deploy Preview for inauzwaapp failed. Why did it fail? →
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
test | 90db505 | Oct 04 2025, 05:55 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Centralize Supabase auth state management and optimize client configuration to prevent excessive
INITIAL_SESSIONlogs and auto-refresh attempts before user login.Multiple auth state change listeners across different contexts (PaymentsContext, AuthContext) were being initialized, along with Supabase's default
autoRefreshTokenanddetectSessionInUrlsettings. This led to redundant session checks and console spam when no user session existed. This PR introduces a centralized auth state handler and disables unnecessary client features to streamline the authentication flow and reduce console noise.