Passport.js (http://www.passportjs.org/) is a great library to handle authentication instead of doing it by hand using JWT.
It would be great to use Passport to authenticate users, and it'll add the possibility to add Facebook, Gmail, etc as strategies in the future.