React, Express, and MongoDB Setup

Hi guys, this is exactly what I’m needing to do. Any resources that you could point me to that show how to get the token from React frontend, to express api to mongodb?

Hi @gwhitdev,

I split this to a new topic, since it may require some unrelated discussion.

The original topic goes through some of the specifics of getting your new user in the DB, and it sounds like you are wondering how to get your token from the front end to the backend.

I would suggest taking a look at our React Quickstart. Make sure to read through the topics on glossary on the left, specifically the section on calling an API.

This should show you everything from requesting a token to making the call with the token in the header to your backend, from there you can use the discussion in the previous topic.

Hope this helps,
Dan

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