{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angularfire2/issues/413","repository_url":"https://api.github.com/repos/angular/angularfire2","labels_url":"https://api.github.com/repos/angular/angularfire2/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/angular/angularfire2/issues/413/comments","events_url":"https://api.github.com/repos/angular/angularfire2/issues/413/events","html_url":"https://github.com/angular/angularfire2/issues/413","id":169711354,"number":413,"title":"[Authentication] Weird behavior !?","user":{"login":"manekinekko","id":1699357,"avatar_url":"https://avatars.githubusercontent.com/u/1699357?v=3","gravatar_id":"","url":"https://api.github.com/users/manekinekko","html_url":"https://github.com/manekinekko","followers_url":"https://api.github.com/users/manekinekko/followers","following_url":"https://api.github.com/users/manekinekko/following{/other_user}","gists_url":"https://api.github.com/users/manekinekko/gists{/gist_id}","starred_url":"https://api.github.com/users/manekinekko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manekinekko/subscriptions","organizations_url":"https://api.github.com/users/manekinekko/orgs","repos_url":"https://api.github.com/users/manekinekko/repos","events_url":"https://api.github.com/users/manekinekko/events{/privacy}","received_events_url":"https://api.github.com/users/manekinekko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-05T22:58:52Z","updated_at":"2016-08-08T11:33:05Z","closed_at":null,"body":"Hi,\r\n\r\nI was playing around with the Auth service, and I discovered a weird behavior...\r\n\r\nMost of the time, when trying to log in using any provider (see screenshot), I always receive two streams values:\r\n1. The first one contains the correct auth info;\r\n1. A second one with a `null` value!! (which means that the user is not logged in).\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1699357/17452396/3a3b415a-5b6f-11e6-9bba-fb19ff19ab28.png)\r\n\r\nHowever, after refreshing the app (i.e. hitting F5), I get one event back with the right session info:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1699357/17452413/60a7abb2-5b6f-11e6-99ae-d99d853b7703.png)\r\n\r\nAnd, when logging out, the app receives a `null` value, which is the expected behavior ofc:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1699357/17452548/609bba86-5b70-11e6-9953-003d1fd06d26.png)\r\n\r\nHere is a portion of my code:\r\n```\r\n    this.af.auth.subscribe(\r\n      user => {\r\n        if(user) {\r\n          this.isAuth = true;\r\n        }\r\n        else {\r\n          this.isAuth = false;\r\n        }\r\n      },\r\n      error => {\r\n        console.trace(error);\r\n      }\r\n    );\r\n```\r\nAny idea?"},"comment":{"url":"https://api.github.com/repos/angular/angularfire2/issues/comments/238210431","html_url":"https://github.com/angular/angularfire2/issues/413#issuecomment-238210431","issue_url":"https://api.github.com/repos/angular/angularfire2/issues/413","id":238210431,"user":{"login":"davideast","id":4570265,"avatar_url":"https://avatars.githubusercontent.com/u/4570265?v=3","gravatar_id":"","url":"https://api.github.com/users/davideast","html_url":"https://github.com/davideast","followers_url":"https://api.github.com/users/davideast/followers","following_url":"https://api.github.com/users/davideast/following{/other_user}","gists_url":"https://api.github.com/users/davideast/gists{/gist_id}","starred_url":"https://api.github.com/users/davideast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davideast/subscriptions","organizations_url":"https://api.github.com/users/davideast/orgs","repos_url":"https://api.github.com/users/davideast/repos","events_url":"https://api.github.com/users/davideast/events{/privacy}","received_events_url":"https://api.github.com/users/davideast/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T11:33:04Z","updated_at":"2016-08-08T11:33:04Z","body":"Can you throw up an example on plnkr so I can debug the heck out of it?"}}
{"actor":{"display_login":"davideast"}}