johnuberbacher / flutter_medical

Functioning Doctor/Healthcare Catalog App created using Dart with Flutter. Stores and loads data from Firebase Firestore DB.
MIT License
243 stars 84 forks source link

Firebase permission problem #3

Open erdometo opened 4 years ago

erdometo commented 4 years ago

I am trying to configure my firebase database and i couldn't resolve this issue I get this error when i am trying to sign in. The user exists but cannot login. resim

It would be very helpful to have firebase rules and database scheme.

clearnetinc commented 4 years ago

Have you enabled your Cloud Firestore database yet?

If you you are activating it for the 1st time be sure to select testing which gives you 30days before requiring you to set Rules.

Hope that helps

erdometo commented 4 years ago

I solved permission problem with the following rules. rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if request.auth != null; } } }

Now, the only problem is database scheme. I tried to configure my database like this but it seems somethings are missing.

resim

I don't know where to put "specialties" collection and other values. A database scheme should be provided in the readme.md file. I just wanted to know how this app looks like.