{"action":"reopened","issue":{"url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/167","repository_url":"https://api.github.com/repos/AzureAD/passport-azure-ad","labels_url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/167/comments","events_url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/167/events","html_url":"https://github.com/AzureAD/passport-azure-ad/issues/167","id":170735882,"number":167,"title":"BearerStrategy initialization is asynchronous ","user":{"login":"kayjtea","id":549008,"avatar_url":"https://avatars.githubusercontent.com/u/549008?v=3","gravatar_id":"","url":"https://api.github.com/users/kayjtea","html_url":"https://github.com/kayjtea","followers_url":"https://api.github.com/users/kayjtea/followers","following_url":"https://api.github.com/users/kayjtea/following{/other_user}","gists_url":"https://api.github.com/users/kayjtea/gists{/gist_id}","starred_url":"https://api.github.com/users/kayjtea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayjtea/subscriptions","organizations_url":"https://api.github.com/users/kayjtea/orgs","repos_url":"https://api.github.com/users/kayjtea/repos","events_url":"https://api.github.com/users/kayjtea/events{/privacy}","received_events_url":"https://api.github.com/users/kayjtea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-11T20:16:56Z","updated_at":"2016-08-11T20:23:07Z","closed_at":null,"body":"When initializing metadata from URL, initialization is asynchronous. This leads to the server listening for HTTP requests before passport is fully ready to be used. In a situation where instances are spun up as needed, this leads to some web requests failing. Initialization should probably take a done callback as well as an error callback. Or maybe initialization should be synchronous. Have any of you run into this problem? "}}
{"actor":{"display_login":"kayjtea"}}