Stop a user accessing serverside props when logged out #4408
Unanswered
callumok2004
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to stop a user from accessing serverside prop routes when not logged in?

You can see here that nextjs has a route for each serverside prop that is fetched on it's specific page, but there is no way at all to block this. I don't want to be getting the session inside each one so if there is another alternative please let me know!
Beta Was this translation helpful? Give feedback.
All reactions