You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug and solution: angularfire2 auth not working with angular universal #1270
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Expected behavior
In my opinion, angularfire2 already have XMLHttpRequest library, but maybe some problem when bootstrap. Maybe you can fix this bug and I don't have to add XMLHttpRequest manually
Actual behavior
get error with XMLHttpRequest.
Solution: I add this on top, error gone.
// server.ts file
(global as any).XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
// your code next...
changed the title [-]angularfire2 auth not working with angular universal[/-][+]Bug and solution: angularfire2 auth not working with angular universal[/+]on Oct 16, 2017
Firebase doesn't official support universal yet :(
I have worked Auth and the RTDB into my starter with some dependency injection monkey patching if you want to try it out before official universal support is here:
Activity
[-]angularfire2 auth not working with angular universal[/-][+]Bug and solution: angularfire2 auth not working with angular universal[/+]patrickmichalina commentedon Oct 17, 2017
Firebase doesn't official support universal yet :(
I have worked Auth and the RTDB into my starter with some dependency injection monkey patching if you want to try it out before official universal support is here:
https://github.com/patrickmichalina/fusebox-angular-universal-starter
hiepxanh commentedon Oct 17, 2017
thank you for that
davideast commentedon Jan 9, 2018
Closing to keep issues consolidated.