passport / discuss

A forum for discussing topics related to the usage of Passport.js.
1 stars 0 forks source link

passport configuration for multiple login/signup #73

Open aynuayex opened 1 year ago

aynuayex commented 1 year ago

I have 3 separate files for student ,teacher and admin routing and used them in server.js file as general middleware using the app.use method. when I route with axios .post("http://localhost:5000/student/login", user) in the frontend with react it keeps diverting to admin route. I have defined passport/(de)serialize on each route what am i wrong?here is the github repo