Token Next Auth null in Middleware
Answered
dilraba posted this in #help-forum
dilrabaOP
Hello there, I tried using next-auth with role based authentication with next-auth. But I don't know why, token is always null in middleware, even when user is authenticated. When I try useSession in a component, token is not null. any suggestion, to solve this issue?
I use Next 13.4.12, & next-auth 4.20.1
I use Next 13.4.12, & next-auth 4.20.1
Answered by dilraba
I solved the issue guys, turned out because i change the cookie session name
1 Reply
dilrabaOP
I solved the issue guys, turned out because i change the cookie session name
Answer