Firebase functionality using state
-
Hi guys,
Im following this great tutorial for firebase authentication
https://medium.com/quasar-framework/updating-to-quasar-0-17-x-with-firebase-authentication-91c129606859everything is smooth with auth and redirection using prefetch
but i can’t use $db or $firebase in other pages of my project. I learned about store and I have store folder in my project.
Can you help me how $db can be used in firebaseui’s callback function. Here->
callbacks:
{
signInSuccessWithAuthResult() {
store.state.$db.collection(‘users’).set({
user: ‘test_name’,
})
},
}and in general, what is the proper way to address store and my $db and $firebase