moubert
moubert

Reputation: 272

JWT in Sails.js with passport

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

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

But routes and controllers with sails-generate-auth seems differents so I don't know how to integrate it

Upvotes: 3

Views: 3729

Answers (2)

moubert
moubert

Reputation: 272

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

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

Upvotes: 1

user156888
user156888

Reputation:

Take a look at waterlock.ninja it's made for sailsJS and does all the JWT stuff OOTB :)

Upvotes: 4

Related Questions