The "returnTo" querystring parameter X is not defined as a valid URL in "Allowed Logout URLs".

Error message was:

The "returnTo" querystring parameter X is not defined as a valid URL in "Allowed Logout URLs". To add a new URL, please do it here: https://manage.auth0.com/#/account/advanced 

Solution

Add the domain in the auth0 tenant section.

 

Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!