Cannot Populate uid Field in users Collection During Sign Up

Actions & Logic

Hi everyone,

I'm building a user profile system, and I'm completely stuck on the final, critical step of my sign-up flow. Any help would be greatly appreciated.

My Goal When a user signs up, I need to create a document for them in my users collection. This document must contain the Authentication UID from the Create Account action.

This is essential because my main UserProfilePage has a backend query that filters the users collection to find the document matching the logged-in user's UID. Since the uid field isn't being populated, the page is always blank.

My Setup I'm using the standard two-action flow on my "Sign Up" button:

  1. Action 1: Firebase Authentication > Create Account (The built-in "Create User Document" toggle is turned OFF).

  2. Action 2: Firestore > Create Document (This targets my users collection).

The Problem In Action 2, I try to set the value for my uid field. The problem is that the Action Outputs variable source is not appearing in the "Set from Variable" dialog. Without this, I have no way to get the uid from the first action.

What have you tried so far?

What I've Tried

  • Deleting and completely rebuilding the action flow from scratch multiple times to ensure the order is correct.

  • Confirming that Action 1 is fully configured before adding Action 2.

  • Trying the single-action method with the "Create User Document" toggle enabled, but I run into a similar issue where I can't map the Authentication UID to my uid field.

I feel like I'm following the documentation and tutorials exactly, but the Action Outputs option is simply missing. Has anyone else experienced this or can spot what I'm doing wrong?

Thank you in advance!

Did you check FlutterFlow's Documentation for this topic?
Yes
1
4 replies