Next.js Discord

Discord Forum

How do I send the cookie object through a function?

Answered
Black-capped Vireo posted this in #help-forum
Open in Discord
Black-capped VireoOP
I tried :unkown, :object, but idk how to do it
Answered by Black-capped Vireo
nvm, I'll just send the value only from page.tsx cause that seems to work instead of the entire cookie
View full answer

5 Replies

Black-capped VireoOP
documentation saids it returns a name and value
so I should be able to do cookie.value
no?
Black-capped VireoOP
nvm, I'll just send the value only from page.tsx cause that seems to work instead of the entire cookie
Answer