Redirect all pages to a particular page if user logged out(missing in session)? #4976
-
I am using next-auth.js in my next.js project. |
Beta Was this translation helpful? Give feedback.
Answered by
balazsorban44
Jul 20, 2022
Replies: 1 comment 6 replies
-
Middleware lets you do exactly that! Have a look: https://next-auth.js.org/configuration/nextjs#basic-usage |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
viraj071
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Middleware lets you do exactly that! Have a look: https://next-auth.js.org/configuration/nextjs#basic-usage