Auth0 Home Blog Docs

Passport and Sails

javascript
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!

#4

Hey there @tom5, I wanted to reach out and apologize for the delay in response. I have attached a react implementation of isAuthenticated here but I wanted to check and see if you are still battling this scenario you previously explained? If by chance you still need assistance I am happy to jump in and help! Thanks in advance!

#5

Thanks James, I will check it out.

1 Like
closed #6

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.