React-native-auth0: can't clearSession on Android device

I’m use “react-native-auth0”: “5.6.0”

I had this issue:

Precondition:

  • Android
  • Login in by SSO (SAML)

How to reproduce this issue?

1, sign in auth0 by SAML (Microsoft) jim.green@company.io

2, app enters Home Page, then kill the app

3, click sign in button, then input a random email like 123@company.io

Then I can sign in previous jim.green@company.io without inputing the password.

So I want to clearSession before every login, I tried all ways below, but all didn’t work. I can still sign in previous user without inputing the password

1, auth0.webAuth.clearSession({ federated: true })

2, auth0.webAuth.clearSession({}, { useLegacyCallbackUrl: true });

3, auth0.webAuth.clearSession(

    { federated: true, returnToUrl: Config.AUTH0_ANDROID_CALLBACK_URL },

    { customScheme: scheme },

  );

Anyone can help, please?