Failed to log out due to return to URL not defined, although it is clearly set and matched

The “returnTo” querystring parameter “” is not defined as a valid URL in “Allowed Logout URLs”

It fails to log out from both local server and remote server.

Anyone else is experiencing similar issues?

Hi @RJJ,

Would you DM me your tenant name so I can take a look?

Hi Dan,

Thanks for coming back to me.

It is an mis-configuration from my end. for some reason, I used to configure “https://domain/v2/logout?returnTo=xxx” as the returnTo parameter in client.logout() API call (Auth0 SDK for SPA)

But it appears that we don’t need “https://domain/v2/logout?returnTo=” in the returnTo parameter string, just specify the redirect URL is sufficient.

Thank you again for coming back to check.

Great, I will mark this as resolved. The issue was a misconfig.

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