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

Configuration option to silence the AuthProvider warning? #1459

Open
brianzhou13 opened this issue Jan 13, 2025 · 0 comments
Open

Configuration option to silence the AuthProvider warning? #1459

brianzhou13 opened this issue Jan 13, 2025 · 0 comments

Comments

@brianzhou13
Copy link

brianzhou13 commented Jan 13, 2025

Context:

I see that we would always be logging AuthProvider context is undefined, please verify you are calling useAuth() as child of a <AuthProvider> component when the AuthProvider is not included.

What are people's thoughts on making whether this warning shows up configurable? Could be defaulted to true.

The usecase is we have a version of our site with JS-disabled, and in that pathway, we don't attach the provider. What happens within our build systems is we just see tons of these logs.

Curious about your thoughts -- thanks!

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

No branches or pull requests

1 participant