Log out doesn't work and automatically sign in

Is that react? I’m not too familiar, I’m not sure what the onclick does exactly, but that may be right. Have you specified the returnTo in your actual code?

https://tenant-name.auth0.com/v2/logout?returnTo=https://subdomain.example.com&client_id=