Closed mohsenmahoski closed 3 years ago
sorry, it was my mistake and a wrong approach. I sent the request to my API in getServerSideProps and my Fetch class not sending cookies, it not related to the next-connect handler
Hi @mohsenmahoski, I like your code structure. Is this project public or private? I would love to take a look at the rest of your code to learn more.
I using next-auth for users authentication and this is my configuration:
when I want to get users info in the API routes its working:
I have the user info in my console:
but when I using next-connect like this:
result of both is null:
I also found that there are no cookies in my request when using handler and req.cookies is {} what I missed and what's my wrong?