3 ms·
What I meant was don't put identifiable user information (ids, email addresses, etc.) on the client in a JWT or cookie and use that as a session identifier. If
by matt_s 6y ago
What I meant was don't put identifiable user information (ids, email addresses, etc.) on the client in a JWT or cookie and use that as a session identifier. If the JWT or cookie gets hacked then someone can impersonate anyone on your system.
Putting their info (email, name, etc.) on a user profile type of page should be fine if your app has a need to do that.
- m33k44 6y agoI am just storing ephemeral id and username in JWT and put the encrypted id in a separate cookie.