# Logout on universal login

**URL:** <https://community.auth0.com/t/logout-on-universal-login/68009>\
**Category:** Get Help\
**Created:** [August 16, 2021, 3:28pm UTC](https://community.auth0.com/t/logout-on-universal-login/68009 "2021-08-16T15:28:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefdelec](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stefdelec/32/31055_2.png) [@stefdelec](https://community.auth0.com/u/stefdelec)\
**Post date:** [August 16, 2021, 3:28pm UTC](https://community.auth0.com/t/logout-on-universal-login/68009/1 "2021-08-16T15:28:20Z")

</div>

Hello,

I use @auth0/auth0-angular and universal login.

`import { AuthService as Auth0Service } from '@auth0/auth0-angular';`

When I “this.auth0Service.logout();” =\> my user is loggout from my website, but they click on ‘login’ they are redirected to auth0 universal login then logged in automatically. How to completly logout a user?

Regards,

Stéphane.

---

<div class="post-metadata">

**Author:** ![marcus.baker](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcus.baker/32/8586_2.png) [@marcus.baker](https://community.auth0.com/u/marcus.baker)\
**Post date:** [August 17, 2021, 12:13am UTC](https://community.auth0.com/t/logout-on-universal-login/68009/2 "2021-08-17T00:13:29Z")

</div>

Hi!

If a user is being logged back in then it would seem as though the Auth0 session is still active.

When you perform the .logout() you should see a request made in the browser to Auth0’s /v2/logout endpoint. The SDK will send over the auth0 cookie in this request which should end the session in Auth0.

There should also be a corresponding log entry in the Auth0 tenant log of type **slo** for the successful logout.

Have you tested our Angular quickstart? I’m including a link here in case this is useful.

> **[Log Event Type Codes](https://auth0.com/docs/deploy-monitor/logs/log-event-type-codes)**
>
> Lists the event codes associated with log events.

> **[Auth0 Angular SDK Quickstarts: Login](https://auth0.com/docs/quickstart/spa/angular/01-login)**
>
> This tutorial demonstrates how to add user login to an Angular application using Auth0.

---

<div class="post-metadata">

**Author:** ![stefdelec](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stefdelec/32/31055_2.png) [@stefdelec](https://community.auth0.com/u/stefdelec)\
**Post date:** [August 17, 2021, 7:06am UTC](https://community.auth0.com/t/logout-on-universal-login/68009/3 "2021-08-17T07:06:16Z")

</div>

Yes; Thanks for the very quick answer.  
Thanks for the explanation.

I think I was miguided by the typing as “logout” is void and not Promise.  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/a/4a40e12ab7116118d094859630d17f55c14e9770.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 17, 2021, 9:45am UTC](https://community.auth0.com/t/logout-on-universal-login/68009/4 "2021-08-17T09:45:27Z")

</div>

No worries! We’re here for you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 26, 2021, 9:16am UTC](https://community.auth0.com/t/logout-on-universal-login/68009/5 "2021-08-26T09:16:54Z")

</div>


