Closed iRedFox closed 2 years ago
The issue was because my User schema is different than code schema. var add_task : FirestoreTask = usersCollection.add(login_dict.email, {'username': login_dict.firstname, 'points': 0, 'country': "", 'skins': []})
Is different than the one in Firestore.
Describe the bug Firestore doesn't allow me to fetch/add data even though the collection does exist. I've drawn a flow chart for how does my program work (I can provide source-code if needed, contact me through discord
RedFox#0001
(ping me in official GodotFirebase discord)console:
To Reproduce Sign-in and authenticate through google sign-in, once logged signal have been emitted.
var document_task : FirestoreTask = usersCollection.get(login.email)
get document task and check if user exists or not. If not then add user to firestore database.Expected behavior Here's two functions (one for once user is found and one when user does not exists)
Screenshots Flow chart:
Environment:
Additional context Its not authentication issue. Its Firestore database not being able to do a task I've tried doing this debug messages and nothing showed up.
output: