-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add support for FastBoot authentication #100
Conversation
@mikkopaderes. Clearly the works of masters! Have you merged this? |
Still a work in progress (WIP). I still need to add the service worker part and test if things actually work. |
Holding off this PR until this firebase/firebase-js-sdk#1906 gets resolved. I'm unable to use any version lower than 6.2.2 in a Node environment as I'm getting |
@mikkopaderes Thanks for your efforts to resolve this. Let us see what happens with the firebase bug ... |
Thank you for your work on this. I see on the documentation you show how to set up the server side to authenticate in fastboot which is great. How though do you test this while in development as I assume when you I am using the following fastboot ready server here: Fastboot Server. And my server file created under the folder "fastboot/main.js" looks like this:
An idea of how you would incorporate your server set up here and how you would run it in development would be great. Thanks. |
I don't use fastboot app server but from the look of things you'd insert that at the before middleware hook. |
@mikkopaderes Thank you for that. For the most part, I have everything set up. I am having trouble getting a valid token as seen from the following error:
I got the error above from the
I looked at your repo dummy app to see if I had missed anything but could not see anything that could help me resolve my issue.
I found that as seen on this screenshot: Browser Console Snapshot, only line 1 and line 2 are logged to the console meaning that the I created a completely fresh repo for this test which you can even pull, run and see for yourself if you have time: Firebase Authentication Sample Repo. Thank you for all your time on this. |
Basing on the code snippet above, this doesn't look right. It should display the token, not some string message. What is the value of Your test repo is also 404. |
I have added a log call
The result of this: I have made the Firebase Authentication Sample Repo public. Sorry for the oversight. |
I won't be able to check on this yet. But quickly looking at things, I don't see Firebase as a devDependency to your ember app. Can you try adding it? |
Yes! What a somewhat obvious omission that was?! Done it and still the same issue here though. |
Thanks for the report. See #101 for the fix. |
Great. I can confirm the issue is resolved from my end. Thank you. |
Resolves #99