The URL is also mentioned in Allowed Logout URLs after one URLs used for development (they are completely different and comma-separated as described in docs).
Code in both applications is same, excepts data from env files.
My problem is - when I tried to logout using the code above - I was redirected to first URL from Allowed Logout URLs and it’s disappointing
So, is that my problem and I need to seek in my code for redirects normal behavior or I need to change something in application setting on auth0 side?
Can you share the exact logout URL that the browser requests, and the 302 response returned by Auth0? (You can see this in the browser’s network tab in the developer tools)
It looks as if you are using redirectTo as the parameter to indicate the return URL, but the parameter name should be returnTo.
Sorry I missed that in the original code snippet.