Next.js Discord

Discord Forum

how to add auth to my app with express

Unanswered
North Pacific hake posted this in #help-forum
Open in Discord
North Pacific hakeOP
Hello currently I made a register route from a next js front end and express server. Now I want to log in the user and start a session but how can I go about protecting my pages and checking if the user is authenticated and using redirects etc. can I do this with express middleware or should I take a different route like credentials from auth O or maybe something else if anyone knows. Thank you

0 Replies