-
Notifications
You must be signed in to change notification settings - Fork 25
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
Component-level authentication #146
Comments
If you're using server components, then calling We're currently thinking about adding a way to do the above in a client component. Let me know if that helps! |
Understood, thanks for the reply @PaulAsjes . So if I understand correctly, it's currently not possible to solve my problem using Do you think it make sense to try using |
You can if you're using a server component with |
Got it, thanks and looking forward to the solution! :) |
I also faced the same issue while using auth on component-level, and I ended creating an extra context so I could make use of it. That felt redundant, tho I am glad to noticed the changes on #147 @PaulAsjes thanks looking forward to it |
Is there a way to authenticate client-side components at the component level, as opposed to the route level?
I have a modal form in my Next app which can be opened from almost any route, however the form itself is not associated with a specific route. Can I ensure that only authorized users are able to access it? Obviously, using the
AuthKitMiddleware
is not applicable in this scenario.The text was updated successfully, but these errors were encountered: