DEV Community

Discussion on: How to use cookies for persisting users in Nextjs

Collapse
 
ikenna profile image
Paschal

Why set cookie within the client? Isn't this poor security practice?

Collapse
 
debosthefirst profile image
Adebola

Hi Paschal, yes, this isn't best practice and I point that out at the beginning of the article. A combination of JWTs and refresh tokens is what I'll always advice.