# Force a real new login, after logout in a react application

**URL:** <https://community.auth0.com/t/force-a-real-new-login-after-logout-in-a-react-application/53073>\
**Category:** Get Help\
**Tags:** react, logout, login\
**Created:** [November 11, 2020, 7:58pm UTC](https://community.auth0.com/t/force-a-real-new-login-after-logout-in-a-react-application/53073 "2020-11-11T19:58:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steffen.rokosch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/steffen.rokosch/32/12715_2.png) [@steffen.rokosch](https://community.auth0.com/u/steffen.rokosch)\
**Post date:** [November 11, 2020, 7:58pm UTC](https://community.auth0.com/t/force-a-real-new-login-after-logout-in-a-react-application/53073/1 "2020-11-11T19:58:47Z")

</div>

I am new with AUTH0.

I am using AUTH0 in a react app for Login/Logout - when the user clicks LogOut and then LogIn I want a complete new Login with the PopUp. The UseCase would be, that different persons uses the same device and when they leave the the tablet, they will logout. The next user should make a complete new login.

This is our react code :

```auto
  const { isLoading, isAuthenticated, user } = useAuth0();

 if (isLoading || !isAuthenticated) {
    return (
      <div class="p-3 mb-2 bg-white text-dark">
        <NavigationBar></NavigationBar>
        <Jumbotron></Jumbotron>
      </div>
    );
  }

  return (
    <div>
      <Main pUser={user.name}></Main>
    </div>
  );

```

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 17, 2020, 9:09pm UTC](https://community.auth0.com/t/force-a-real-new-login-after-logout-in-a-react-application/53073/3 "2020-11-17T21:09:56Z")

</div>

Hi @steffen.rokosch,

Welcome to the Community.

This should be the default behavior. Are you using a quickstart? How are you logging out?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 14, 2020, 4:31pm UTC](https://community.auth0.com/t/force-a-real-new-login-after-logout-in-a-react-application/53073/4 "2020-12-14T16:31:42Z")

</div>

Closing after two weeks of inactivity.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 14, 2020, 4:31pm UTC](https://community.auth0.com/t/force-a-real-new-login-after-logout-in-a-react-application/53073/5 "2020-12-14T16:31:52Z")

</div>


