Auth0 Home Blog Docs

Can't log out in android


#1

I am trying to logout - it automatically login me to the app, when I start login.

Auth0 auth0 = new Auth0(AppConfig.auth0clientId, AppConfig.auth0domain);
auth0 = Utils.getAuth0();
WebAuthProvider.init(auth0)
.withParameters(parameters)
.withScheme(getString(R.string.scheme))
.withScope(Config.Auth0.scopeValue)
.start(this, callback);

Parameters contains “prompt”: “login”

Used just email/password auth.
SDK version ‘com.auth0.android:auth0:1.12.0’
Android 7.0, 7.1, 8.0


#2

:wave: @yevgenii.shein you should be able to force a fresh login with the way you are using withParameters and specifying the key prompt and value login, can you try prompt=login? You could alternatively try implementing the logout logic using the Credentials Manager.


#3

I am already using prompt=login. I also tried to use CredentialsManager.clearCredentials. It gives me no result.
This problem appeared more than 2 weeks ago on live build in store.
I also tried to create a sample with only login and live credentials of app and got same result - user was logged in after fresh install.