Problem getting cookies in the api routes of Nextjs
I am trying to get the cookies in the user api route for getting the userid , but getting undefined|null, even though i have a cookies stored in my browser, i am able to get the cookies in the server components though, is there a diff way of getting cookies in the api routes?