I have signed in to account A, then signed out by calling clearCredentialState
.
After that, when relaunching the app, I called getCredential
with .setFilterByAuthorizedAccounts(true)
and .setAutoSelectEnabled(true)
then credential A still returned -> wrong?
code snipet
GetGoogleIdOption googleIdOption = new GetGoogleIdOption.Builder()
.setFilterByAuthorizedAccounts(true)
.setServerClientId(WEB_CLIENT_ID)
.setAutoSelectEnabled(true)
.build();
I expected that after signing out, no credentials should be returned. That means the clear credential function doesn’t seem to work.
If I have signed in with account A then signed out and signed in with account B, then getCredential
returns both accounts A and B. I expected it should be only B which hasn’t signed out yet. It also reported here but seems there aren’t any plans for it.
Has anyone faced this before? or if I did anything wrong?