firebase / firebase/friendlyeats-web

NextJS Auth: Where should the session cookie be set

Open
#330 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
597
Forks
456
PR merge metrics
No merged PRs in 30d

Description

From NextJS [docs on authentication](https://nextjs.org/docs/app/guides/authentication#:~:text=Cookies%20should%20be%20set%20on%20the%20server%20to%20prevent%20client%2Dside%20tampering.) it is advised to set the session cookie on the server side. However in this the guide provided here, the cookies are set on the client side. What are the consequences of setting the cookie on client? Is it a security issue?
https://github.com/firebase/friendlyeats-web/blob/6bf6c0e7f3c480c6ec4675814351e5a254ca092c/nextjs-end/src/components/Header.jsx#L17

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.