Connecting Supabase Auth to Braze
Supabase Auth sits directly on your own Postgres database, which means the identity and the revenue can be joined with a query rather than through an integration. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Supabase user before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Supabase Auth to Braze: the auth UUID is the external ID
Use the Supabase auth user UUID as Braze's external ID, calling change-user in app and web once a session exists. Send paid, plan-change and cancellation events from the billing table joined to auth.users through the user track endpoint, not also from the SDK. Wait for email confirmation before setting email attributes, or limit early messaging to push.
Braze's whole integration is choosing the external ID, and Supabase Auth gives you the obvious answer: the auth user's UUID. It never changes, unlike the email, which Supabase lets users update. Call Braze's change-user method with that UUID in the app and on the web as soon as a session exists, so the anonymous device profile from before sign-up merges into the real user.
Server events then come from your database. A paid subscription, a plan change or a cancellation is a row in your billing table joined to auth.users, and the Braze user track endpoint receives it keyed on the same UUID. Database triggers or webhooks on the billing table can send it as the row changes, through a function that calls Braze. Keep these events on the server and do not also log the purchase from the app SDK, or the user gets two purchase-triggered campaigns.
Watch the window between sign-up and confirmation. If email confirmation is on, a user exists in auth.users before their email is verified, and identifying them in Braze then may start email campaigns to a mistyped address. Either wait for confirmation before setting email attributes in Braze, or limit early messaging to push and in-app, which do not depend on the address being right.
Supabase Auth → Braze · what breaks
Why this join usually fails — Supabase Auth → Braze
- 01
The Braze external user ID never reaches Supabase Auth
OAuth flows redirect off-site and back, which can lose an identifier captured before login.
- 02
Building a pipeline for a join you could write in SQL
Teams reach for a CDP or an event pipeline to connect identity to revenue when both tables sit in the same database. The simplest correct answer is usually a scheduled query.
- 03
Duplicate events sending duplicate push notifications
A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.
- 04
Nothing reconciles afterwards
Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.
Supabase Auth → Braze · the fix
What working looks like — Supabase Auth → Braze
The Braze external user ID on every account
Conversions arriving in Braze
The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.
Reconciled against the source
Supabase Auth → Braze · architecture
How Supabase Auth and Braze actually connect
- 1
Supabase Auth holds the truth
Because everything is in one Postgres instance, the join that most products build a pipeline for is a SQL statement here. That is a genuine advantage and it is frequently unused.
- 2
Braze needs a click to match
Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.
- 3
The identifier is the bridge
The Braze external user ID, captured at the visit and carried into the Supabase user.
- 4
The event source decides reliability
Send paid conversions from a query joining auth users to billing.
- 5
Deduplication at the destination
Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.
Supabase Auth → Braze · normal or broken
Working vs. broken, side by side — Supabase Auth → Braze
Normal, not a fault
The Braze external user ID present on the account
Sent from your own database
Deduplicated correctly
Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.
Reconciles with the source
Actually broken
The Braze external user ID missing on most records
OAuth flows redirect off-site and back, which can lose an identifier captured before login.
Sent from the browser
Teams reach for a CDP or an event pipeline to connect identity to revenue when both tables sit in the same database. The simplest correct answer is usually a scheduled query.
Counted twice, or not at all
A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.
Nobody has reconciled it
Supabase Auth → Braze · diagnose
Diagnostic order — Supabase Auth → Braze
- 01
Count accounts carrying the Braze external user ID
- 02
Follow one real conversion end to end
- 03
Check whether identity and billing are in the same database
If they are, most of the usual integration complexity is unnecessary.
- 04
Send a test purchase and read the user profile's event stream
One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.
- 05
Read the match rate, not the success message
Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.
Supabase Auth → Braze · prove
How it gets proven — Supabase Auth → Braze
Source of truth
Your own database, joining the auth user to the subscription or order table.
- The Braze external user ID confirmed present on a live account.
- The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
- Paid conversions reconciled by query against imported conversions, with identifier survival verified across OAuth.
Supabase Auth → Braze · free audit
What we check in the free audit
- Count accounts carrying the Braze external user ID
- Follow one real conversion end to end
- Check whether identity and billing are in the same database
- Send a test purchase and read the user profile's event stream
- Read the match rate, not the success message
Checked against
Your own database, joining the auth user to the subscription or order table.
Free30 minutesNo obligation
Supabase Auth → Braze · when not to buy
When you don't need this — Supabase Auth → Braze
- Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the Braze external user ID.
- If billing lives in a separate system, the join is a real integration again and the advantage disappears.
- If you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.
Supabase Auth → Braze · what we deliver
What gets built — Supabase Auth → Braze
Identifier capture into Supabase Auth
Persist the identifier before the OAuth redirect and write it onto the user row at first login, where it is then permanently queryable.
Event source: your own database
Send paid conversions from a query joining auth users to billing.
Dispatch to Braze
The Braze user track endpoint, posted server-side from your order or billing system with the external user ID and event properties.
Reversals where they exist
Cancellations reverse against the same user row.
Written guarantee
95%+ tracking accuracy
Measured against Your own database, joining the auth user to the subscription or order table.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Supabase Auth → Braze questions, answered
The Supabase auth user UUID. It is stable, unlike the email, which users can change.
From the server, keyed on the auth UUID, triggered by changes to your billing table, and not also logged from the app SDK.
Almost always because the Braze external user ID never reached the Supabase user. OAuth flows redirect off-site and back, which can lose an identifier captured before login. Measure coverage before debugging the dispatch.
Braze identifies people by an external_id you assign, usually your own user ID, with anonymous device profiles merged in once a user signs in. There is no click identifier at all. Getting the external ID right is the entire integration; getting it wrong fragments one customer into several profiles who each receive the same campaign.
Your own database. Send paid conversions from a query joining auth users to billing.
Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.
More on Supabase Auth → Braze
- Firebase Auth → BrazeConnecting Firebase Authentication to Braze
- Supabase Auth → Google AdsConnecting Supabase Auth to Google Ads
- Supabase Auth → MetaConnecting Supabase Auth to Meta Conversions API
RELATED GUIDES
Where Supabase Auth → Braze fits in the rest of your tracking
- Okta → BrazeConnecting Okta to Braze
- Clerk → BrazeConnecting Clerk to Braze
- Auth0 → BrazeConnecting Auth0 to Braze
- Supabase Auth → KlaviyoConnecting Supabase Auth to Klaviyo
- Supabase Auth → Marketing CloudConnecting Supabase Auth to Salesforce Marketing Cloud
- B2BConversion tracking for B2B, from first touch to closed-won
- Firebase Auth → BrazeConnecting Firebase Authentication to Braze
Free · 30 min
Get Supabase Auth and Braze joined properly
Free30 minutesNo obligation
