{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/623","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/623/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/623/events","html_url":"https://github.com/firebase/FirebaseUI-iOS/issues/623","id":411704899,"node_id":"MDU6SXNzdWU0MTE3MDQ4OTk=","number":623,"title":"authUI.authViewController() for email does not reset after login","user":{"login":"yongrim","id":12755004,"node_id":"MDQ6VXNlcjEyNzU1MDA0","avatar_url":"https://avatars0.githubusercontent.com/u/12755004?v=4","gravatar_id":"","url":"https://api.github.com/users/yongrim","html_url":"https://github.com/yongrim","followers_url":"https://api.github.com/users/yongrim/followers","following_url":"https://api.github.com/users/yongrim/following{/other_user}","gists_url":"https://api.github.com/users/yongrim/gists{/gist_id}","starred_url":"https://api.github.com/users/yongrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongrim/subscriptions","organizations_url":"https://api.github.com/users/yongrim/orgs","repos_url":"https://api.github.com/users/yongrim/repos","events_url":"https://api.github.com/users/yongrim/events{/privacy}","received_events_url":"https://api.github.com/users/yongrim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-19T01:28:00Z","updated_at":"2019-02-19T01:53:02Z","closed_at":null,"author_association":"NONE","body":"Steps to repro:\r\n\r\n1. Login or signup using email\r\n2. Logout\r\n3. Login or signup again to see that the last view of the previous login/signup is displayed instead of the root view of the authUI.authViewController()\r\n\r\nRecently it seems that isSignInWithEmailHidden flag was removed and instead now we are required to use FUIEmailAuth as one of the providers if we want to use email auth.\r\n\r\nSince this change it looks like for the last view in the navigation stack of the email login/signup flow stays as the view presented.\r\n\r\nThis behavior is different from before and from other auth providers.\r\n\r\nThis is a problem because when the user logs out and the authUI.authViewController() is presented again the last view of the email login/signup is presented again instead of the root view of the authUI.authViewController().\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/comments/464947079","html_url":"https://github.com/firebase/FirebaseUI-iOS/issues/623#issuecomment-464947079","issue_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/623","id":464947079,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NDk0NzA3OQ==","user":{"login":"xuaninbox","id":5108256,"node_id":"MDQ6VXNlcjUxMDgyNTY=","avatar_url":"https://avatars0.githubusercontent.com/u/5108256?v=4","gravatar_id":"","url":"https://api.github.com/users/xuaninbox","html_url":"https://github.com/xuaninbox","followers_url":"https://api.github.com/users/xuaninbox/followers","following_url":"https://api.github.com/users/xuaninbox/following{/other_user}","gists_url":"https://api.github.com/users/xuaninbox/gists{/gist_id}","starred_url":"https://api.github.com/users/xuaninbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuaninbox/subscriptions","organizations_url":"https://api.github.com/users/xuaninbox/orgs","repos_url":"https://api.github.com/users/xuaninbox/repos","events_url":"https://api.github.com/users/xuaninbox/events{/privacy}","received_events_url":"https://api.github.com/users/xuaninbox/received_events","type":"User","site_admin":false},"created_at":"2019-02-19T01:53:02Z","updated_at":"2019-02-19T01:53:02Z","author_association":"CONTRIBUTOR","body":"I remember I have this issue before. for me its because I **performSegue** to the next view controller in the \r\n\r\n`authUI(_: FUIAuth, didSignInWith authDataResult: AuthDataResult?, error: Error?) `\r\n\r\nthat caused a timing issue with\r\n\r\n`Auth.auth().addStateDidChangeListener`\r\n\r\nSo, to solve it, **performSegue** in `Auth.auth().addStateDidChangeListener` and NOT `authUI(_: FUIAuth, didSignInWith authDataResult: AuthDataResult?, error: Error?) `"}}
{"actor":{"display_login":"xuaninbox"}}