Passport and Sails

Hi

I’m trying to adapt this example Implement Passport.js authentication with Sails.js 1.0 | by Greg Hesp | Medium to use Auth0 with GitHub - auth0/passport-auth0: Auth0 authentication strategy for Passport.js

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!

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!

Thanks James, I will check it out.

1 Like

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