-
Notifications
You must be signed in to change notification settings - Fork 3
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: Resolve multiple ClerkProvider issue and hide Reset HUD button when user is not authenticated #100
Conversation
…uthorized access.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…rect auth dependency.
…ed user authentication handling.
The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information. |
1 similar comment
The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information. |
…properties in `layout.tsx`.
…onent to AuthenticatedResetHUDButton for clarity.
The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information. |
The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information. |
1 similar comment
The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information. |
The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information. |
2 similar comments
The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information. |
The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information. |
This got fucked up, I solved it myself |
This PR addresses issue #93 by hiding the Reset HUD button when the user is not authenticated and resolves the issue of multiple
<ClerkProvider>
components in the React component tree.Updated changes:
<ClerkProvider>
fromapp/layout.tsx
.components/ClientResetHUDButton.tsx
to include<ClerkProvider>
and handle authentication.AuthenticatedResetHUDButton
component inClientResetHUDButton.tsx
that uses theuseAuth
hook.useAuth
hook is only used in a client-side component.These changes ensure that:
<ClerkProvider>
in the React component tree.This approach should resolve both the authentication visibility issue and the server-side rendering problems with authentication.