Wednesday 25 September 2019

Express & Passport.js - How do I authenticate from an external server?

Hi all, I can't seem to find an answer to this after searching everywhere. I currently have a REST server for my API and I would like to authenticate a user and somehow persist the session on the frontend, but I cannot seem to do that with any of the Passport strategies.REST server (localhost:5000) - Node/Express/PassportFrontend Server (localhost:3000) - ReactI'm using an async post request from React, but how would I return a 'session' and store it on the frontend? The concept eludes meThanks in advance

Submitted September 25, 2019 at 11:04AM by ObviouslyNotANinja

No comments:

Post a Comment