angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

Auto-login new session #2384

Open maximilianloy opened 7 years ago

maximilianloy commented 7 years ago

The JWT token expiry is set to 5h, but every time I restart the browser I have to log in again. Is there a way to re-use the token so I do not have to login again?

Item Version
generator-angular-fullstack 3.8.0
Node 4.4.0
npm 2.14.20
Operating System OS X 10
Item Answer
Transpiler Babel
Markup HTML
CSS SCSS
Router ui-router
Client Tests Jasmine / Mocha
DB MongoDB
Auth Y
Climax777 commented 7 years ago

The token is supposed to be saved in the the cookies. Are your cookies cleared on browser restart?

maximilianloy commented 7 years ago

I am using Safari 10.0.3. Tried to find a setting about cookies being cleared but couldn't. Also, the only extension I have installed is AdBlock which is disabled for this page.

Those are the cookies I see after login: screen shot 2017-02-14 at 07 42 45

atodicebear commented 7 years ago

Try other Browser like Chrome or FireFox.