erikras / erikras/react-redux-universal-hot-example

Can sensitive information be saved in req.session.user cookie?

Open
#1,075 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Hello,

Can information be securely stored in `req.session.user` for example in the [login script](https://github.com/erikras/react-redux-universal-hot-example/blob/master/api/actions/login.js)? For example would it be acceptable to store a user's name, email, password, userid, etc.? Or could this information ever be maliciously accessed? How can I authenticate if they're really logged in? Could they ever manually set this information? Do I need to setup a tokening system?

Trying to understand this simplified API example.

Thanks!

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.