Cookies in client side. #75502
Unanswered
ishaan000
asked this question in
App Router
Replies: 1 comment
-
Read through, #63775, and the comments as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the best way to set cookies in client side?
I have a login feature that needs to store a token for persistent login.
I am thinking about saving the token in a cookie and using nextjs middleware.ts to route protect by checking the cookie.
Is this the right way to go?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions