-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fastboot, ember simple auth and emberfire dont work each other #606
Comments
Same issue. I gave up using emberfire. Instead I did this workaround.
Added xmlhttprequest to fastbootdependencies in package.json {
"dependencies": {
"xmlhttprequest": "1.8.0"
},
"fastbootDependencies": [
"xmlhttprequest"
]
}
app.import('vendor/firebase-app.js');
app.import('vendor/firebase-auth.js');
export function initialize(applicationInstance) {
if (firebase.apps.length === 0) {
var firebaseConfig = {
...
}
firebase.initializeApp(firebaseConfig);
}
}
export default {
initialize
};
export function initialize(applicationInstance) {
if (typeof FastBoot !== 'undefined') {
window.XMLHttpRequest = FastBoot.require('xmlhttprequest').XMLHttpRequest;
}
}
export default {
initialize
};
globals: {
firebase: "readonly"
}, Done. I was able to |
many thanks, can we use the firebase that you just initialize to work on firestore? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i tried to work with emberfire and embersimple auth, and followed the instruction, and it worked, but when i tried to use fastboot , it failed, it said " Error: The XMLHttpRequest compatibility library was not found.". I tried to use the guide from embersimple auth, by activated the cookie, yes it worked but the session failed to capture the login from firebase probably due i changed the session-stores to follow the guides from ember-simple-auth website, any idea to work around this problem?
thanks
The text was updated successfully, but these errors were encountered: