{"action":"created","issue":{"url":"https://api.github.com/repos/Urigo/angular-meteor-auth/issues/22","repository_url":"https://api.github.com/repos/Urigo/angular-meteor-auth","labels_url":"https://api.github.com/repos/Urigo/angular-meteor-auth/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/angular-meteor-auth/issues/22/comments","events_url":"https://api.github.com/repos/Urigo/angular-meteor-auth/issues/22/events","html_url":"https://github.com/Urigo/angular-meteor-auth/issues/22","id":149738706,"number":22,"title":"requireUser sometimes hangs","user":{"login":"mxab","id":1607547,"avatar_url":"https://avatars.githubusercontent.com/u/1607547?v=3","gravatar_id":"","url":"https://api.github.com/users/mxab","html_url":"https://github.com/mxab","followers_url":"https://api.github.com/users/mxab/followers","following_url":"https://api.github.com/users/mxab/following{/other_user}","gists_url":"https://api.github.com/users/mxab/gists{/gist_id}","starred_url":"https://api.github.com/users/mxab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxab/subscriptions","organizations_url":"https://api.github.com/users/mxab/orgs","repos_url":"https://api.github.com/users/mxab/repos","events_url":"https://api.github.com/users/mxab/events{/privacy}","received_events_url":"https://api.github.com/users/mxab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-04-20T11:16:35Z","updated_at":"2016-05-05T10:14:19Z","closed_at":null,"body":"Hi,\r\n\r\nwe experience some resolving/rejecting issue in our application. we call requireUser but the then handlers are never called.\r\n\r\nI started todo some logging in the metoer-angular-auth but it looks ok\r\n\r\nit autoruns, finds a valid user, enqueues the deferred.resolve int the $$afterFlush, the Tracker.afterFlush gets also called, but then it disappears.\r\n\r\nany ideas what the problem might be?"},"comment":{"url":"https://api.github.com/repos/Urigo/angular-meteor-auth/issues/comments/217118294","html_url":"https://github.com/Urigo/angular-meteor-auth/issues/22#issuecomment-217118294","issue_url":"https://api.github.com/repos/Urigo/angular-meteor-auth/issues/22","id":217118294,"user":{"login":"mxab","id":1607547,"avatar_url":"https://avatars.githubusercontent.com/u/1607547?v=3","gravatar_id":"","url":"https://api.github.com/users/mxab","html_url":"https://github.com/mxab","followers_url":"https://api.github.com/users/mxab/followers","following_url":"https://api.github.com/users/mxab/following{/other_user}","gists_url":"https://api.github.com/users/mxab/gists{/gist_id}","starred_url":"https://api.github.com/users/mxab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxab/subscriptions","organizations_url":"https://api.github.com/users/mxab/orgs","repos_url":"https://api.github.com/users/mxab/repos","events_url":"https://api.github.com/users/mxab/events{/privacy}","received_events_url":"https://api.github.com/users/mxab/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T10:14:19Z","updated_at":"2016-05-05T10:14:19Z","body":"@DAB0mB not sure I fully understand what you test does \r\n\r\nSo the problem as far as I see it is that the $auth.awaitUser is called but there is an active computation and the loggingIn autorun is treated as a nested autorun and is therefore stopped\r\n\r\n```\r\nif(Tracker.active){\r\n console.error('active computation',Tracker.currentComputation._func);\r\n}\r\n```\r\npoints to a function in the rootScope service, but not sure if this is really the issue"}}