{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/polymerfire/issues/86","repository_url":"https://api.github.com/repos/firebase/polymerfire","labels_url":"https://api.github.com/repos/firebase/polymerfire/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/firebase/polymerfire/issues/86/comments","events_url":"https://api.github.com/repos/firebase/polymerfire/issues/86/events","html_url":"https://github.com/firebase/polymerfire/issues/86","id":166794773,"number":86,"title":"Service worker doesn't allow Firebase Auth redirecting","user":{"login":"motss","id":10607759,"avatar_url":"https://avatars.githubusercontent.com/u/10607759?v=3","gravatar_id":"","url":"https://api.github.com/users/motss","html_url":"https://github.com/motss","followers_url":"https://api.github.com/users/motss/followers","following_url":"https://api.github.com/users/motss/following{/other_user}","gists_url":"https://api.github.com/users/motss/gists{/gist_id}","starred_url":"https://api.github.com/users/motss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motss/subscriptions","organizations_url":"https://api.github.com/users/motss/orgs","repos_url":"https://api.github.com/users/motss/repos","events_url":"https://api.github.com/users/motss/events{/privacy}","received_events_url":"https://api.github.com/users/motss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-21T11:14:40Z","updated_at":"2016-07-21T11:26:26Z","closed_at":"2016-07-21T11:26:26Z","body":"### Description\r\nWith Service Worker enabled, Firebase Auth redirection does not work and it seems like sw intercept the network request while hitting the URL `https://example.firebaseapp.com/__/auth/handler?apiKey=<api_key>...` (too long) for authentication for both redirect and popup and treats the URL like one of the sub pages of my application.\r\n\r\nHowever, without Service Worker, the authentication works fine and it is able to redirect to `https://example.firebaseapp.com/__/auth/handler?apiKey=<api_key>...` then back to the URL of the application.\r\n\r\n### Expected outcome\r\n\r\nFirebase Auth works with Service Worker enabled.\r\n\r\n### Actual outcome\r\n\r\nService Worker seems like intercepting the network request while hitting URL `https://example.firebaseapp.com/__/auth/handler?apiKey=<api_key>...`.\r\n\r\n### Live Demo\r\n\r\n\r\n### Steps to reproduce\r\n1. Create a demo with sub-pages routing with `app-route` and use `firebase-auth` for authentication.\r\n2. Build the demo with `sw` enabled.\r\n3. Login and see demo stops redirection while hitting the URL `https://example.firebaseapp.com/__/auth/handler?apiKey=<api_key>...`.\r\n4. If Chrome Canary is used, tick `Bypass for network` on the `Service Workers` section under `Application` tab in Dev Tools. Try log in again and see redirection works fine.\r\n\r\n### Browsers Affected\r\n- [x] Chrome\r\n- [ ] Firefox\r\n- [ ] Safari 9\r\n- [ ] Safari 8\r\n- [ ] Safari 7\r\n- [ ] Edge\r\n- [ ] IE 11\r\n- [ ] IE 10\r\n"}}
{"actor":{"display_login":"motss"}}