Help with NextAuth v4
Unanswered
Rahul the Developer posted this in #help-forum
I am trying to build Chat Application, done with signin page and I am using MongoDB has database and I am using Credentials signin with NextAuth v4, I want to add advance middleware features like withAuth function in middleware.ts file but when I am trying to signin on successful signin. It does automatically redirecting me to protected or home page and when I manually going to signin page it should block and redirect to home page but it doesn’t work. Can someone help me with this?