{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/emberfire/issues/360","repository_url":"https://api.github.com/repos/firebase/emberfire","labels_url":"https://api.github.com/repos/firebase/emberfire/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/firebase/emberfire/issues/360/comments","events_url":"https://api.github.com/repos/firebase/emberfire/issues/360/events","html_url":"https://github.com/firebase/emberfire/pull/360","id":129658971,"number":360,"title":"Fix Torii provider option.","user":{"login":"adjohnson916","id":615381,"avatar_url":"https://avatars.githubusercontent.com/u/615381?v=3","gravatar_id":"","url":"https://api.github.com/users/adjohnson916","html_url":"https://github.com/adjohnson916","followers_url":"https://api.github.com/users/adjohnson916/followers","following_url":"https://api.github.com/users/adjohnson916/following{/other_user}","gists_url":"https://api.github.com/users/adjohnson916/gists{/gist_id}","starred_url":"https://api.github.com/users/adjohnson916/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adjohnson916/subscriptions","organizations_url":"https://api.github.com/users/adjohnson916/orgs","repos_url":"https://api.github.com/users/adjohnson916/repos","events_url":"https://api.github.com/users/adjohnson916/events{/privacy}","received_events_url":"https://api.github.com/users/adjohnson916/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-29T03:49:12Z","updated_at":"2016-02-17T19:30:13Z","closed_at":"2016-02-17T19:30:13Z","pull_request":{"url":"https://api.github.com/repos/firebase/emberfire/pulls/360","html_url":"https://github.com/firebase/emberfire/pull/360","diff_url":"https://github.com/firebase/emberfire/pull/360.diff","patch_url":"https://github.com/firebase/emberfire/pull/360.patch"},"body":"Using the Firebase OAuth Torii provider included in Emberfire, it seems `options.provider` isn't always defined, in the case of `options.authWith`, but the `provider` variable picks whichever is defined a few lines above, so we need to use that instead. Otherwise we get this error:\r\n```\r\nError: Firebase.authWithOAuthPopup failed: First argument must be a valid string.(…)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/firebase/emberfire/issues/comments/185366730","html_url":"https://github.com/firebase/emberfire/pull/360#issuecomment-185366730","issue_url":"https://api.github.com/repos/firebase/emberfire/issues/360","id":185366730,"user":{"login":"tstirrat","id":702990,"avatar_url":"https://avatars.githubusercontent.com/u/702990?v=3","gravatar_id":"","url":"https://api.github.com/users/tstirrat","html_url":"https://github.com/tstirrat","followers_url":"https://api.github.com/users/tstirrat/followers","following_url":"https://api.github.com/users/tstirrat/following{/other_user}","gists_url":"https://api.github.com/users/tstirrat/gists{/gist_id}","starred_url":"https://api.github.com/users/tstirrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstirrat/subscriptions","organizations_url":"https://api.github.com/users/tstirrat/orgs","repos_url":"https://api.github.com/users/tstirrat/repos","events_url":"https://api.github.com/users/tstirrat/events{/privacy}","received_events_url":"https://api.github.com/users/tstirrat/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T19:30:13Z","updated_at":"2016-02-17T19:30:13Z","body":"Closing in favor of #368 , I copied your commit to that and added a test."}}