Skip to content

Cannot Create Document in Users Collection #6264

@FlutterTester999

Description

@FlutterTester999

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Anonymous Auth is enabled and successfully signs users in — I can see a new UID generated and the isUserLoggedIn variable is set to true in the FlutterFlow debug panel. Email Sign-In is enabled. I have confirmed that [email protected] is authenticated and all permissions are correct. Firestore rules are correctly written and deployed. And the Firebase Schema Validation passed successfully. However, no matter how I attempt to create the user document (using the "create user document" toggle in Auth actions or a manual Create Document action using the UID), no document is created in the users collection. The action flow stops immediately after authentication, with no error shown. The new user appears in Firebase Authentication, but Firestore shows no corresponding document.

Expected Behavior

After authentication, a document should be created in the users collection using the UID as the document ID, either automatically via the toggle or manually via the Create Document action. The action flow should continue as expected.

Steps to Reproduce

  1. Connect to Firebase
  2. Enable anonymous Auth
  3. Create a users collection
  4. Under "Firestore Settings", enable Users Collection
  5. Deploy Firestore Rules
  6. Create a simple sign-in page with a single button
  7. For that button's action, add a "Auth Login" or "Auth Create Account" action followed by any other action (i.e. show snackbar, play sound, or navigate to different page)
  8. In this action: Select anonymous for Auth provider, toggle "Create user document" ON, and select "users" for the collection
  9. Run a test & push the button
  10. Observe that a uid is created but no document is created in the users collection. Observe that the action flow is stopped.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4whcn135NPvuZE17r+au9ViicWMjshaIE/mMFTZCs9f5CvOpYUec/6PhNtTcCoYFZle02Mp14E+dLviPH9FfYFAzCdY75DzJdQVQ7zVlunM7mTF7iKRHwnP55NFUi10Z+JsRFSItVtWXMu2U+lOOSiTgXZNoT4PlQ4Sq/LZO4=

Visual documentation

Image Image Image

Environment

- FlutterFlow version: v6.1.15 (released July 25, 2025)
- Platform: Web
- Browser name and version: Microsoft Edge Version 138.0.3351.95

Additional Information

Without the ability to log users in and collect usage data I can't really do much at all ...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions