-
Notifications
You must be signed in to change notification settings - Fork 22
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
Deprecated plugin boot.js #5
Comments
Yes I think the I believe that this observer is what allows the app to automatically and instantly log the user out if their account is disabled form the Firebase console. That I like the use of the meta data in the routes because they allow me to easily see from my Feel free to fork and try moving it to preFetch. I'll have a look when I have a moment. I'm currently working on a sample Quasar app that authenticates against a Ruby on Rails API. |
Ok check out the preFetch branch that I created: https://github.com/steveclarke/quasar-firebase-example/tree/prefetch This has the same problem that I had before I solved by using
I think the problem is in how Firebase |
Can you submit a pull request with that change in it? I'd like to give it a try. |
I have made those change in a project I am working on. Give me a day. I will do it |
You can store userId in localstorage and init app and then call firebase onAuthStateChanged to update user info |
I'm guessing that pull request never happened huh.... @amitkukadia |
I'm looking forward to solve that issue, @steveclarke solution with login page redirect on every reload is not preferable. |
Seems that
is worked for me UPD: This is not so, because every time I'm adding new listener, but not removing old one. So it leads to uncontrollable listeners breeding. Will investigate further. UPD2: So, I came up with a solution. Not sure whether it elegant or even correct, but it works.
And then remove it in
|
The boot.js plugin is now deprecated, in favor of prefetch feature. However, it is not as effective as the boot.js plugin.
The migration guide is given below
https://medium.com/quasar-framework/updating-to-quasar-0-17-x-with-firebase-authentication-91c129606859
Still, with this method, I am not getting the same results. It suggests that we should add prefetch to every component for auth. I think there must be a better way. Can you try to integrate prefetch into this app keeping the results same?? Or at least suggest a better way here.
The text was updated successfully, but these errors were encountered: