Cannot logout of ADFS from Android app

I need help logging out of my Android app. Login is working fine with ADFS, but when the user clicks the logout button, it looks like it’s signing them out of the app for a brief second and then signing them back in right away since the ADFS credentials are still valid.

The onSuccess() callback is never reached.

WebAuthProvider.logout(auth0)
.withScheme(“https”)
.withReturnToUrl(String.format(“https://%s/v2/logout?federated”, getString(R.string.com_auth0_domain)))
.start(this, new VoidCallback()
{
@Override
public void onSuccess(Void payload)
{
// Remove user from ADFS.
credentialsManager.clearCredentials();

                    Log.d(TAG, "User successfully logged out");
                }

                @Override
                public void onFailure(Auth0Exception error)
                {
                    Log.d(TAG, "Log out failed!\nError: " + error);

                    //Log out canceled, keep the user logged in
                    showNextActivity();
                }
            });