WuTheFWasThat / vimflowy

An open source productivity tool drawing inspiration from workflowy and vim

Home Page:https://www.wuthejeff.com/vimflowy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firebase Not Working

joboyx opened this issue · comments

image

  • I've setup a new project in firebase
  • initialized firestore and added rules
  • created user via email/password
  • change data source in settings and input firebase keys/id and email/password
  • but there's an error in console saying it can't reach firestore

Is it possible that you're using the old URL/protocol for Firestore -- firebaseio.com?

it's supposed to be realtime database, not firestore

Thanks!

I was able to make it work now.

Just some notes:

  • the hyperlink here is broken:
    image
  • Would be great to mention "Realtime Database" here since there's already 2 types of DB in Firebase, other is Firestore. But yeah, if you follow the links you provided, it will redirect to Realtime Database page, so that's my bad.

    https://github.com/WuTheFWasThat/vimflowy/blob/master/docs/storage/Firebase.md

  • Lastly, would be great to mention that the "Firebase ID" mentioned here is the "Realtime Database URL" indicated in Realtime Database page. Like so -- ${projectId}-default-rtdb
    image
    image

Nevertheless, all good! Awesome work! 🤩

You can close this, if you want.

One more thing I did, when I used the default Database Rules you provided, Firebase notified that it was not secure, since any user that can authenticate would be able to access your database. So fix for that is to do something like this:

image

And you can get your UID here:
image

thank you!! updated docs :)