{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/1156","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-Android","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/1156/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/1156/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/1156/events","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/1156","id":297808125,"number":1156,"title":"“No eligible accounts can be found” error on sign out despite disabling Smart Lock","user":{"login":"ifeins","id":1324361,"avatar_url":"https://avatars0.githubusercontent.com/u/1324361?v=4","gravatar_id":"","url":"https://api.github.com/users/ifeins","html_url":"https://github.com/ifeins","followers_url":"https://api.github.com/users/ifeins/followers","following_url":"https://api.github.com/users/ifeins/following{/other_user}","gists_url":"https://api.github.com/users/ifeins/gists{/gist_id}","starred_url":"https://api.github.com/users/ifeins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifeins/subscriptions","organizations_url":"https://api.github.com/users/ifeins/orgs","repos_url":"https://api.github.com/users/ifeins/repos","events_url":"https://api.github.com/users/ifeins/events{/privacy}","received_events_url":"https://api.github.com/users/ifeins/received_events","type":"User","site_admin":false},"labels":[{"id":417993157,"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/labels/auth","name":"auth","color":"d4c5f9","default":false},{"id":234429615,"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/milestones/27","html_url":"https://github.com/firebase/FirebaseUI-Android/milestone/27","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/milestones/27/labels","id":3055954,"number":27,"title":"3.2.2","description":"","creator":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars2.githubusercontent.com/u/8466666?v=4","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2018-01-23T00:47:17Z","updated_at":"2018-02-16T15:53:44Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-02-16T14:45:54Z","updated_at":"2018-02-16T17:52:44Z","closed_at":null,"author_association":"NONE","body":"### Step 1: Describe your environment\r\n\r\n  * Android device: Samsung S7 \r\n  * Android OS version: 7.0.0 (though it happened on other versions)\r\n  * Google Play Services version: 11.9.75\r\n  * Firebase/Play Services SDK version: 11.8.0\r\n  * FirebaseUI version: 3.2.1\r\n  \r\n### Step 2: Describe the problem:\r\n\r\nI'm using Google authentication through Firebase Auth UI to login users to my app.\r\nIn the app I'm developing I've added a sign out button which allow the user to switch the associated Google account.\r\nWhen the sign out button is clicked an exception is thrown (see observed result section).\r\n\r\nI've previously opened a StackOverflow thread on this and was asked to open an issue here.\r\nSee this thread: https://stackoverflow.com/questions/48529851/firebase-auth-ui-no-eligible-accounts-can-be-found-error-on-sign-out\r\n  \r\n#### Observed Results:\r\n\r\nThe following exception is thrown:\r\n\r\n```\r\n01-30 22:08:39.730 8075-8075/com.ifeins.tenbis E/HomeActivity: signOut: Failed to sign out\r\njava.util.concurrent.ExecutionException: 1 out of 2 underlying tasks failed\r\n at com.google.android.gms.tasks.Tasks$zzc.zzbjb(Unknown Source)\r\n at com.google.android.gms.tasks.Tasks$zzc.onFailure(Unknown Source)\r\n at com.google.android.gms.tasks.zzh.run(Unknown Source)\r\n at com.google.android.gms.tasks.zzm.execute(Unknown Source)\r\n at com.google.android.gms.tasks.zzg.onComplete(Unknown Source)\r\n at com.google.android.gms.tasks.zzl.zzb(Unknown Source)\r\n at com.google.android.gms.tasks.zzn.setException(Unknown Source)\r\n at com.google.android.gms.tasks.TaskCompletionSource.setException(Unknown Source)\r\n at com.google.android.gms.common.internal.zzbl.zzr(Unknown Source)\r\n at com.google.android.gms.common.api.internal.zzs.zzc(Unknown Source)\r\n at com.google.android.gms.common.api.internal.zzs.setResult(Unknown Source)\r\n at com.google.android.gms.internal.zzaul.setResult(Unknown Source)\r\n at com.google.android.gms.internal.zzauk.zze(Unknown Source)\r\n at com.google.android.gms.internal.zzaur.onTransact(Unknown Source)\r\n at android.os.Binder.execTransact(Binder.java:573)\r\nCaused by: com.google.android.gms.common.api.ApiException: 16: No eligible accounts can be found\r\n at com.google.android.gms.common.internal.zzb.zzy(Unknown Source)\r\n at com.google.android.gms.common.internal.zzbk.zzz(Unknown Source)\r\n at com.google.android.gms.common.internal.zzbl.zzr(Unknown Source) \r\n at com.google.android.gms.common.api.internal.zzs.zzc(Unknown Source) \r\n at com.google.android.gms.common.api.internal.zzs.setResult(Unknown Source) \r\n at com.google.android.gms.internal.zzaul.setResult(Unknown Source) \r\n at com.google.android.gms.internal.zzauk.zze(Unknown Source) \r\n at com.google.android.gms.internal.zzaur.onTransact(Unknown Source) \r\n at android.os.Binder.execTransact(Binder.java:573) \r\n```\r\n  \r\n#### Expected Results:\r\n\r\nI expected the sign out to work successfully and not throw an exception.\r\n  \r\n#### Relevant Code:\r\n\r\nThis is the sign out code I'm using:\r\n\r\n```\r\nprivate void signOut() {\r\n    AuthUI.getInstance()\r\n            .signOut(this)\r\n            .addOnCompleteListener((task) -> {\r\n                if (task.isSuccessful()) {\r\n                    User.setCurrentUser(null);\r\n                    showSignInDialog();\r\n                } else {\r\n                    Log.e(TAG, \"signOut: Failed to sign out\", task.getException());\r\n                }\r\n            });\r\n}\r\n```\r\n\r\nThis is the code I'm using to perform sign in (notice that I disable smart lock):\r\n\r\n```\r\nprivate void showSignInDialog() {\r\n    List<AuthUI.IdpConfig> providers = Collections.singletonList(\r\n            new AuthUI.IdpConfig.Builder(AuthUI.GOOGLE_PROVIDER).build()\r\n    );\r\n\r\n    Intent intent = AuthUI.getInstance()\r\n            .createSignInIntentBuilder()\r\n            .setIsSmartLockEnabled(false)\r\n            .setAvailableProviders(providers)\r\n            .build();\r\n    startActivityForResult(intent, RC_SIGN_IN);\r\n}\r\n```\r\n\r\nI've also attempted to disable SmartLock on the device itself but the exception is still being thrown.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/comments/366309306","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/1156#issuecomment-366309306","issue_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/1156","id":366309306,"user":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars2.githubusercontent.com/u/8466666?v=4","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"created_at":"2018-02-16T17:52:44Z","updated_at":"2018-02-16T17:52:44Z","author_association":"MEMBER","body":"@ifeins I bet this comes from disabling SmartLock at the account level on your device, did you see this error before you did that?"}}
{"actor":{"display_login":"samtstern"}}