JWT in Sails.js with passport

Does anyone know how to use JWT in sails.js file with passport?

I saw this link to do this node.js: passport-local with node-jwt-simple

But routes and controllers with sails-generate-auth seem to be different, so I don't know how to integrate it.

+3


source to share


2 answers


I found a repo on github doing exactly what I was looking for (passport + jsonwebtokens with sails on the back) with a bonus interface written in angular



https://github.com/ProLoser/angular-sails-seed

+1


source


Take a look at waterlock.ninja made for sailsJS and all JWT OOTB stuff :)



+4


source







All Articles