Skip to content
Discussion options

You must be logged in to vote

@thesobercoder that file is an example on how'd you do authorization on a protected page using SSR.

For example, when you don't want the page to load at all, you redirect the unauthorized user from the server using getServerSideProps when the session is invalid.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thesobercoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants