I’m building an app using FlutterFlow and Supabase with both email and Google Sign-In authentication.
After the user authenticates —and as I believe is almost mandatory— I want to create a row in my public.users
table in Supabase dragging info from auth.users
. I've followed both FF's documentation and this tutorial. However, despite everything looking correct, no record is created in the former.
Here’s what the structure of my public.users
table in Supabase looks like:
id (int8 - primary key - Allegedly, an identifier that Supabase should generates on its own, if I am not wrong).
created_at (timestampz with default
now()
)uid (text)
email (text)
name (text)
profile_pic (text)
uid is related to auth.users.id
as foreign key.
My action flow:
User authenticates via Google Sign-In.
Insert Row action is triggered —within FlutterFlow's Action Flow) to add a new record to the
public.users
table, filling fields with:
uid: Authenticated User > auth.users.uid
email: Authenticated User > auth.users.Email
Later on, I want public.users
to drag display name and profile pic from user's raw metadata.
In the he Supabase logs, I see a POST request with a status code 204 No Content—which I think that normally means success... but no data actually shows up in the table.