Swift login alert shows up when you logout

What is the solution to this? Calling
Auth0
.webAuth()
.clearSession(federated: true) { … }

automatically calls the Auth0 login screen