# Why do I automatically get logged in every time I click the log in button on my angular page?

**URL:** <https://community.auth0.com/t/why-do-i-automatically-get-logged-in-every-time-i-click-the-log-in-button-on-my-angular-page/15781>\
**Category:** Get Help\
**Created:** [September 21, 2018, 4:59pm UTC](https://community.auth0.com/t/why-do-i-automatically-get-logged-in-every-time-i-click-the-log-in-button-on-my-angular-page/15781 "2018-09-21T16:59:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spmtest](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/spmtest/32/10428_2.png) [@spmtest](https://community.auth0.com/u/spmtest)\
**Post date:** [September 21, 2018, 4:59pm UTC](https://community.auth0.com/t/why-do-i-automatically-get-logged-in-every-time-i-click-the-log-in-button-on-my-angular-page/15781/1 "2018-09-21T16:59:32Z")

</div>

I am following this angular 2+ guide. [https://auth0.com/docs/quickstart/spa/angular2/01-login](https://auth0.com/docs/quickstart/spa/angular2/01-login). When I click the login button on my application I am automatically signed it. Even when I logout and remove the accessToken and idToken I am still able to sign in. How can I stop this from happening?

---

<div class="post-metadata">

**Author:** ![luke.oliff](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luke.oliff/32/8938_2.png) [@luke.oliff](https://community.auth0.com/u/luke.oliff)\
**Post date:** [September 21, 2018, 7:03pm UTC](https://community.auth0.com/t/why-do-i-automatically-get-logged-in-every-time-i-click-the-log-in-button-on-my-angular-page/15781/2 "2018-09-21T19:03:40Z")

</div>

The auth server has an active session for you.

You can force it to log you out by heading to the logout link. Check out these docs on logout here: [Logout](https://auth0.com/docs/logout)

---

<div class="post-metadata">

**Author:** ![spmtest](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/spmtest/32/10428_2.png) [@spmtest](https://community.auth0.com/u/spmtest)\
**Post date:** [September 21, 2018, 7:49pm UTC](https://community.auth0.com/t/why-do-i-automatically-get-logged-in-every-time-i-click-the-log-in-button-on-my-angular-page/15781/3 "2018-09-21T19:49:55Z")

</div>

thank you… that clears things up

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 21, 2018, 7:49pm UTC](https://community.auth0.com/t/why-do-i-automatically-get-logged-in-every-time-i-click-the-log-in-button-on-my-angular-page/15781/4 "2018-10-21T19:49:56Z")

</div>

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