jdx / mean-sample

Sample project for Write Modern Web Apps with the MEAN Stack by Jeff Dickey
https://mean-sample.herokuapp.com
165 stars 90 forks source link

Session/JWT isn't persistant #43

Open hirelee opened 9 years ago

hirelee commented 9 years ago

Running the final code it would seem that if/when you refresh the browser the logged in user is lost. Meaning that I have to login all over again. Does anyone know the reason for this? or a possible solution?

Am i right in assuming that you would need to use some form of local storage?

Motionly commented 9 years ago

Hi, I've had the same issue. Check out this page for a better tutorial on JWT https://stormpath.com/blog/nodejs-jwt-create-verify/, I think session stuff is incomplete in this tutorial.

DarekDarecki commented 8 years ago

+1