How can I integrate the way of doing policies in SailsJs into a basic expressJs project?
Asked
Active
Viewed 1,183 times
1 Answers
1
I'd read about middleware The way of doing middleware in Express and passport.js passport.js
You need to intercept the request using middleware, get the credentials, validate them, then either move the request on to be fullfilled, or reject with a 401 unauthorised.

dandanknight
- 659
- 5
- 21