Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: exclude AuthProvider from StrictMode in local development to prevent auth problems #57

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

fredrikmonsen
Copy link
Collaborator

Local dev without disabling strict mode for the whole app in the config caused auth problems as the code to exchange to token was sent twice, causing infinite loop of re-rendering. This PR disables strict mode in the config while adding it with <React.StrictMode> below in the tree.

This PR should have no effect any environment except development

@pierrebeauguitte pierrebeauguitte merged commit 643c3e1 into main Oct 16, 2024
6 checks passed
@pierrebeauguitte pierrebeauguitte deleted the fix/strict-mode-exclude-auth-provider branch October 16, 2024 10:16
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