[Sail.js] Check user Authenticated from socket Requests

When using Sails.js with Passport.js, the isAuthenticated method does not exist on the req object when requested through websocket. How to check user is authenticated from socket requests ? You can inject authentication methods into socket requests. For this just make a little hijack into config/bootstrap.js. After this hijack you can use isAuthenticated() to check […]

Read More