Logout returnTo was not working

I have configured the logout URL -
https://dev-xxxx.us.auth0.com/v2/logout?returnTo=http%3A%2F%2Flocalhost%3A3000&client_id=xxclient_idxxx”.
But still showing error.

onClick={() => {
router.push(“http://localhost:8080/logout”);
}} //useRouter from next/navigation

const config = { routes: {
postLogoutRedirect: process.env.CLIENT_URL, }

CLIENT_URL=http://localhost:3000



Hi @das95sankaram,

Welcome to the Auth0 Community!

The error message specifies that the “http://localhost:3000” URL is not set up inside the Allowed Logout URLs. In the screenshot you provided, the Allowed Logout URL seems to be “http://localhost:3001”. The correct URL needs to be inputted.

If you have any other questions, feel free to reach out.

Have a good one,
Vlad

1 Like