# Post Logout URL error

**URL:** <https://community.auth0.com/t/post-logout-url-error/186180>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [May 1, 2025, 8:39am UTC](https://community.auth0.com/t/post-logout-url-error/186180 "2025-05-01T08:39:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brad\_doctaly](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brad_doctaly/32/74556_2.png) [@brad\_doctaly](https://community.auth0.com/u/brad_doctaly)\
**Post date:** [May 1, 2025, 8:39am UTC](https://community.auth0.com/t/post-logout-url-error/186180/1 "2025-05-01T08:39:27Z")

</div>

Auth0 is showing the following error when users try to log out of our application:

**invalid\_request** : The “post\_logout\_redirect\_uri” querystring parameter “XXX” is not defined as a valid URL in “Allowed Logout URLs”. To add a new URL, please do it here…

Our application is built in NextJS (pages router) and we are using the `@auth0/nextjs-auth0` library.

Our `api/auth/logout` endpoint calls the `auth0.handleLogout` method, which results in users being directed to oidc/logout url on our tenant, with our configured post logout URL in the `post_logout_redirect_uri` query param.

I have checked in the dashboard and that exact domain is definitely set in the Allowed Logout URLs. In fact, it is the only domain that is set.

Our development application that is set up in the exact same way, but with different urls, is working as expected.

Can anyone give any pointers on what else I could look at to resolve this issue?

---

<div class="post-metadata">

**Author:** ![brad\_doctaly](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brad_doctaly/32/74556_2.png) [@brad\_doctaly](https://community.auth0.com/u/brad_doctaly)\
**Post date:** [May 1, 2025, 8:40am UTC](https://community.auth0.com/t/post-logout-url-error/186180/2 "2025-05-01T08:40:37Z")

</div>

If it helps, here is the tracking ID for the error - 4b88cfbd67eb25097b11

---

<div class="post-metadata">

**Author:** ![teodor.andrei](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teodor.andrei/32/75320_2.png) [@teodor.andrei](https://community.auth0.com/u/teodor.andrei)\
**Post date:** [May 1, 2025, 11:29am UTC](https://community.auth0.com/t/post-logout-url-error/186180/4 "2025-05-01T11:29:58Z")

</div>

Hi @brad_doctaly and welcome to the Auth0 Community!

Please check the logout request in your Network trace and ensure the route matches exactly the one set on your dashboard. Also, if you haven’t already, please check out our [documentation](https://auth0.com/docs/authenticate/login/logout/log-users-out-of-auth0#add-parameters-to-post-logout-redirect-url) on logging out a user.

If you have any more questions, don’t hesitate to ask!  
Teodor

---

<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:** [May 15, 2025, 11:30am UTC](https://community.auth0.com/t/post-logout-url-error/186180/5 "2025-05-15T11:30:27Z")

</div>

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