it helps some times I am new to nodejs and trying to develop nodejs demo application referring this article. I followed all steps and its first phase is working fine for me. But after adding passport authentication it is not working , just uncomment following line in app.js
I hope this helps . To use JWT tokens, you have to use SSL (https). Without it, you won't have protection at all. JWT tokens are signed (check the site). So if someone (middle man) try to change it, it will be invalidated.