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.