Wednesday, 2 September 2020

Express.js, passing data from one route to another?

I have a route at /register and /login. Currently I have /register setup to res.redirect to /login. I want to pass the user info (of the newly registered user) to that route.Is it possible? Or do I need to make 2 separate requests from my front end (React.js app)?I think I might need to respond with the new user's data, and then make a 2nd request to /login from the front end app.

Submitted September 02, 2020 at 01:03PM by fpuen

No comments:

Post a Comment