News for hackers. Stuff that matters.
Re:JSON Web Tokens by Ingolmo on Monday September 08, 2014 @05:22AM (#8283951)
JWTs seem really great to handle auth on single page apps with APIs, but I don't quite understand something yet:

What is the best and recommended way to implement a "remember me" feature?

I'm using the "angular-fullstack" yeoman generator (https://github.com/DaftMonk/generator-angular-fullstack) which uses your npm packages, but it lacks of a feature like that, and the app is pretty much unusable, user must log in every time after closing the browser...

Re:JSON Web Tokens by jfroma on Monday September 08, 2014 @06:10AM (#8284055)
Store the token on a cookie or localstorage (see store.js for instance).