Skip to content
Discussion options

You must be logged in to vote

https://next-auth.js.org/tutorials/securing-pages-and-api-routes

Personally I don't like to use getServerSideProps for only auth, so I came up with this:

https://next-auth.js.org/getting-started/client#custom-client-session-handling

(I think we should move the latter into the former page)

I hope it helps! 😊

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@balazsorban44
Comment options

@simplenotezy
Comment options

@simplenotezy
Comment options

@simplenotezy
Comment options

@simplenotezy
Comment options

Answer selected by balazsorban44
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