Not able to logout in my app?

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

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 documentation for more information.

Thanks,
Rueben

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

In this below URL:
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
Logout is working

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

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