Currently we are saving the user object in local storage as a way to keep sessions on the client side.
We should remove this and instead use the session cookie provided by express-session ( i think)...
Set this up with an expiring cookie. Also ensure that on the frontend a user is logged out once the session expires.
Currently we are saving the user object in local storage as a way to keep sessions on the client side.
We should remove this and instead use the session cookie provided by
express-session
( i think)... Set this up with an expiring cookie. Also ensure that on the frontend a user is logged out once the session expires.