Next.js Discord

Discord Forum

getting cookie on server

Unanswered
Pacific saury posted this in #help-forum
Open in Discord
Pacific sauryOP
I am saving a cookie on login and it got saved.
Now I am accessing the cookie like this:
const getToken= request.cookies.get("showcaseToken")
The problem is that I am able to get the token value on localhost, but on Postman or server I got undefined.

RepoLink: https://github.com/alokVerma749/Showcase
Live Link: https://showcase-lyart-five.vercel.app/

# Please help me out

0 Replies