in my case, if my device has 2 (or more) accounts (A & B), and I call setFilterByAuthorizedAccounts
API with .setFilterByAuthorizedAccounts(true)
and .setAutoSelectEnabled(true)
:
clearCredentialState
, then credential A still returned -> wrong? I expected that after signing out, no credentials should be returned. That means the clear credential function doesn't seem to work.I also wonder why the new Credential Manager doesn't expose a function to let return the last signed-in credential the same as before. Calling the new API when there is a signed-in credential be there even shows the sign-in UI which is useless and we don't need/want to show it (although we set .setAutoSelectEnabled(true)
and there is only on available credential, it still displays the sign-in UI in some seconds).