{"action":"created","issue":{"url":"https://api.github.com/repos/witoldsz/angular-http-auth/issues/43","labels_url":"https://api.github.com/repos/witoldsz/angular-http-auth/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/witoldsz/angular-http-auth/issues/43/comments","events_url":"https://api.github.com/repos/witoldsz/angular-http-auth/issues/43/events","html_url":"https://github.com/witoldsz/angular-http-auth/issues/43","id":20904557,"number":43,"title":"event:auth-loginRequired fired multiple times causing login dialog popup multiple times.","user":{"login":"xmlking","id":627951,"avatar_url":"https://avatars.githubusercontent.com/u/627951?v=3","gravatar_id":"","url":"https://api.github.com/users/xmlking","html_url":"https://github.com/xmlking","followers_url":"https://api.github.com/users/xmlking/followers","following_url":"https://api.github.com/users/xmlking/following{/other_user}","gists_url":"https://api.github.com/users/xmlking/gists{/gist_id}","starred_url":"https://api.github.com/users/xmlking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmlking/subscriptions","organizations_url":"https://api.github.com/users/xmlking/orgs","repos_url":"https://api.github.com/users/xmlking/repos","events_url":"https://api.github.com/users/xmlking/events{/privacy}","received_events_url":"https://api.github.com/users/xmlking/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-10-12T03:14:37Z","updated_at":"2015-07-26T14:27:23Z","closed_at":"2013-10-28T22:25:18Z","body":"I am using angular UI router that supports nested views. My nested views invoke multiple REST services at same time for for a given URL .when two REST calls receive 401 error, this module is broadcasting two loginRequired events.\r\nThis causes my login dialog pops up again after successful login. It would be nice if this module Wait for loginConfirmed() call before it broadcast next loginRequired event.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/witoldsz/angular-http-auth/issues/comments/124997254","html_url":"https://github.com/witoldsz/angular-http-auth/issues/43#issuecomment-124997254","issue_url":"https://api.github.com/repos/witoldsz/angular-http-auth/issues/43","id":124997254,"user":{"login":"Mr-Anonymous","id":8770270,"avatar_url":"https://avatars.githubusercontent.com/u/8770270?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Anonymous","html_url":"https://github.com/Mr-Anonymous","followers_url":"https://api.github.com/users/Mr-Anonymous/followers","following_url":"https://api.github.com/users/Mr-Anonymous/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Anonymous/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Anonymous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Anonymous/subscriptions","organizations_url":"https://api.github.com/users/Mr-Anonymous/orgs","repos_url":"https://api.github.com/users/Mr-Anonymous/repos","events_url":"https://api.github.com/users/Mr-Anonymous/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Anonymous/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T14:27:23Z","updated_at":"2015-07-26T14:27:23Z","body":"Thanks heaps for that @xmlking That certainly gives me an idea now on how to approach this. Thanks again for helping. I was stuck on that for a long time wondering how to resolve it. Much appreciated. :)"}}