Mirage does not play well with firebase
See original GitHub issueI’m using the npm firebase
package alongside mirage in a React app. When I make a Firebase auth request, Mirage intercepts the HTTP request and firebase
returns an auth/network-request-failed
error. I have this.passthrough()
at the bottom of my routes config in createServer
but it still doesn’t work. Any ideas?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Firebase Realtime Database
Store and sync data with our NoSQL cloud database. Data is synced across all clients in realtime, and remains available when your app...
Read more >Appsflyer vs Firebase: Which is Better for Attribution?
Short comparison on how Appsflyer vs Firebase compares for one fundamental question: mobile attribution for app installs.
Read more >Algolia vs Mirage | What are the differences? - StackShare
Hi Rana, good question! From my Firebase experience, 3 million records is not too big at all, as long as the cost is...
Read more >Firebase for user authentication in Vue.js - This Dot Labs
In this article, I will introduce Firebase User Authentication module to authenticate and authorize users accessing the Notes Writer app.
Read more >ember.js - each helper doesn't display firebase data - Stack Overflow
If you're on Ember 2.x, it's {{#each model as |post|}} . See the relevant deprecation. You should be getting an error about that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was just looking how to fix this same issue @alistairholt .
Taking a look at the docs at the bottom of the overview section for pass through
Just like you, having
this.passthrough()
did not solve the issue, but once i added the FQDN it worked without a hitchthis.passthrough('https://www.googleapis.com/identitytoolkit/**');
Now i can ignore mocking the auth flow… for now
@samselikoff is there a “recipe” section for some common things like this? Like a simple gist or write up for mocking out 3rd party tools like firebase? if not, once i get around to doing it for this new project im working on maybe i’ll open a PR for the docs?
For anyone looking at this in 2021, I was able to get it to work locally with
this.passthrough("https://identitytoolkit.googleapis.com/**");
Looks like the auth domain has changed.