relying on Session to restrict user behavior on server? #11252
Unanswered
addlistener
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As we know the Session object is exposed to the client. Should we do server check against the info in Session?
Or simply put is it possible for a hacker to, let's say, change the user.id in session?
I'm using database session strategy. But I guess the same question applies to jwt strategy ( I vaguely remember that there's some secret to encrypt jwt but just to confirm here)
https://next-auth.js.org/getting-started/typescript#module-augmentation
Beta Was this translation helpful? Give feedback.
All reactions