# Not able to logout in my app?

**URL:** <https://community.auth0.com/t/not-able-to-logout-in-my-app/115649>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [September 7, 2023, 12:55pm UTC](https://community.auth0.com/t/not-able-to-logout-in-my-app/115649 "2023-09-07T12:55:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopalgurram](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gopalgurram/32/50637_2.png) [@gopalgurram](https://community.auth0.com/u/gopalgurram)\
**Post date:** [September 7, 2023, 12:55pm UTC](https://community.auth0.com/t/not-able-to-logout-in-my-app/115649/1 "2023-09-07T12:55:47Z")

</div>

I am facing the logout issue on my app and getting the below error ?

### Oops!, something went wrong

There could be a misconfiguration in the system or a service outage. We track these errors automatically, but if the problem persists feel free to contact us.  
Please try again.

Please contact the systems administrator.

**invalid\_request** : The “returnTo” querystring parameter “:///auth/logout” is not defined as a valid URL in “Allowed Logout URLs”. To add a new URL, please do it here:

i have valid urls but still not able to logout from the app

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 7, 2023, 4:11pm UTC](https://community.auth0.com/t/not-able-to-logout-in-my-app/115649/3 "2023-09-07T16:11:27Z")

</div>

Hi @gopalgurram,

Welcome to the Auth0 Community!

It looks like you had passed the `returnTo=:///auth/logout` value in the logout URL.

When looking into your tenant, I can only see `http://127.0.0.1:4000/auth/logout` as the only URL in your Allowed Logout URLs. Hence, why you have been experiencing issues. You will need to pass `returnTo=http://127.0.0.1:4000/auth/logout`.

Please refer to our [Redirect Users with Alternative Logout](https://auth0.com/docs/authenticate/login/logout/redirect-users-after-logout) documentation for more information.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![gopalgurram](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gopalgurram/32/50637_2.png) [@gopalgurram](https://community.auth0.com/u/gopalgurram)\
**Post date:** [September 8, 2023, 4:41am UTC](https://community.auth0.com/t/not-able-to-logout-in-my-app/115649/4 "2023-09-08T04:41:44Z")

</div>

Thanks for the quick replay @rueben.tiow ,  
I tried the way you told but the showing the below error

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/c/6c73b50b128bccd279c13a02191c5bd93de21b97.png)

---

<div class="post-metadata">

**Author:** ![gopalgurram](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gopalgurram/32/50637_2.png) [@gopalgurram](https://community.auth0.com/u/gopalgurram)\
**Post date:** [September 8, 2023, 9:23am UTC](https://community.auth0.com/t/not-able-to-logout-in-my-app/115649/5 "2023-09-08T09:23:56Z")

</div>

In this below URL:  
[https://dev-3c5uvx24zuwoigrb.us.auth0.com/v2/logout?client\_id=G5Z25TkDUIfqVGuX0oyCTRfVs9ergzcN&returnTo=%3A%2F%2F%2Fauth%2Flogout](https://dev-3c5uvx24zuwoigrb.us.auth0.com/v2/logout?client_id=G5Z25TkDUIfqVGuX0oyCTRfVs9ergzcN&returnTo=%3A%2F%2F%2Fauth%2Flogout)

after i replace the returnTo=%3A%2F%2F%2Fauth%2Flogout to returnTo=[http://127.0.0.1:4000/auth/logout](http://127.0.0.1:4000/auth/logout)  
Logout is working

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 8, 2023, 4:31pm UTC](https://community.auth0.com/t/not-able-to-logout-in-my-app/115649/6 "2023-09-08T16:31:41Z")

</div>

Hi @gopalgurram,

Thanks for following up.

I see in your screenshot that you passed in an invalid URI in your Allowed Logout URLs.

To fix this, you will need to pass in a valid URL, in this case: `http://127.0.0.1:4000/auth/logout`

Just to clarify, you will need to remove the `returnTo=` part of the value you passed in.

After that’s done, logging out should work as expected.

Thanks,  
Rueben

---

<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:** [September 22, 2023, 4:32pm UTC](https://community.auth0.com/t/not-able-to-logout-in-my-app/115649/7 "2023-09-22T16:32:06Z")

</div>

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