No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Firebase functionality using state

    Help
    1
    1
    217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • iodoli
      iodoli last edited by iodoli

      Hi guys,

      Im following this great tutorial for firebase authentication
      https://medium.com/quasar-framework/updating-to-quasar-0-17-x-with-firebase-authentication-91c129606859

      everything 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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post