# Authentication, Node Express with React

**URL:** <https://forum.freecodecamp.org/t/authentication-node-express-with-react/338422>\
**Category:** General\
**Created:** [January 4, 2020, 9:17pm UTC](https://forum.freecodecamp.org/t/authentication-node-express-with-react/338422 "2020-01-04T21:17:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukkyz](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@Lukkyz](https://forum.freecodecamp.org/u/Lukkyz)\
**Post date:** [January 4, 2020, 9:17pm UTC](https://forum.freecodecamp.org/t/authentication-node-express-with-react/338422/1 "2020-01-04T21:17:37Z")

</div>

Hi all, I’m really in trouble for understand how manage authentication with React and Express, I’ve an Back End API with a passport local and an Front with React.  
Someone can help me how to do that ?

---

<div class="post-metadata">

**Author:** ![KittyKora](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kittykora/32/124629_2.png) [@KittyKora](https://forum.freecodecamp.org/u/KittyKora)\
**Post date:** [January 4, 2020, 9:24pm UTC](https://forum.freecodecamp.org/t/authentication-node-express-with-react/338422/2 "2020-01-04T21:24:10Z")

</div>

Do you have a code? any screenshots? this is kind of vague

---

<div class="post-metadata">

**Author:** ![Lukkyz](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@Lukkyz](https://forum.freecodecamp.org/u/Lukkyz)\
**Post date:** [January 4, 2020, 9:53pm UTC](https://forum.freecodecamp.org/t/authentication-node-express-with-react/338422/3 "2020-01-04T21:53:19Z")

</div>

You can see the github of front: [https://github.com/Lukkyz/avis](https://github.com/Lukkyz/avis)  
in my front I’ve created a form for log in, but after I don’t know how to manage the session, I can store the username in a state, and another state like “logged: true” in react but what if accidentally the express app log out the user ? How to transmit that on the front ?  
Sorry for my english, I hope your undestand me

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 7:38pm UTC](https://forum.freecodecamp.org/t/authentication-node-express-with-react/338422/4 "2021-06-01T19:38:35Z")

</div>

Closed on June 1, 2021, 7:38pm UTC


