Auth0 Home Blog Docs

Passport and Sails

passport

#1

Hi

I’m trying to adapt this example https://medium.com/@greg.hesp/implement-passport-js-authentication-with-sails-js-1-0-50888265fb83 to use Auth0 with https://github.com/auth0/passport-auth0

I’m wondering if anyone knows how to adapt the isAuthenticated policy? I’m guessing I need to store something in the session in the callback function?

I have the passportSession middleware enabled.

Thanks in advance!