Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate Create-react-app with passport middleware?

I have a requirement to authorize the user based on passport strategy.

react app created with CREATE-REACT-APP passport js - passport-facebook strategy. As far as I know, passport js can be work along with express only.

Since I have created app using CREATE-REACT-APP all configuration is auto generated and unable to integrate passport js in same.

Can anybody help me to fix this issue?

like image 469
Nina0408 Avatar asked Mar 04 '18 11:03

Nina0408


1 Answers

Here is my implementation of create-react-app & Passport.js in an express app. (https://github.com/Tetsuya3850/MERN-Sprint/tree/master/auth)

like image 172
Tetsuya3850 Avatar answered Oct 10 '22 02:10

Tetsuya3850