Connecting Supabase Auth to Branch
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. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Supabase user before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Supabase Auth to Branch: let the login do the web-to-app join
Set the Supabase auth user UUID as the Branch identity on web after sign-in and in the app after login, so web sign-ups who install later join deterministically. Store deferred deep link data on the user's row at first login, send paid conversions through Branch's server-to-server API, and test that Branch links don't mangle magic-link session tokens.
Branch exists to carry context across an app install, and that handoff is probabilistic. A product using Supabase Auth on both web and mobile has something better for users who already have an account: the same auth user UUID on both sides. Set it as the Branch identity on the web after sign-in and in the app after login, and a web sign-up who later installs the app is joined deterministically when they log in, whatever happened to the deferred deep link.
The deferred deep link still matters for new users who install before signing up, so keep it, and record the Branch link data on the user's row at first login so the campaign is stored with the account. Paid conversions can then come from your database, joined from auth users to billing, and be posted with Branch's server-to-server events API, using an event identifier that the app does not also send.
The Supabase-specific failure is auth email links. Magic links and email confirmation links carry the session token in the URL. Wrapping them in Branch links to open the app can drop or mangle that token, or route it to an app that is not set up to complete the login. Test magic-link sign-in on a phone with and without the app installed, and add any Branch domain to Supabase's allowed redirect URLs only if you route auth through it.
Supabase Auth → Branch · what breaks
Why this join usually fails — Supabase Auth → Branch
- 01
The Branch link click identifier and the deferred deep link payload 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
The install that erases the campaign
Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.
- 04
Nothing reconciles afterwards
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
Supabase Auth → Branch · the fix
What working looks like — Supabase Auth → Branch
The Branch link click identifier and the deferred deep link payload on every account
Conversions arriving in Branch
The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.
Reconciled against the source
Supabase Auth → Branch · architecture
How Supabase Auth and Branch 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
Branch needs a click to match
Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.
- 3
The identifier is the bridge
The Branch link click identifier and the deferred deep link payload, 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
Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.
Supabase Auth → Branch · normal or broken
Working vs. broken, side by side — Supabase Auth → Branch
Normal, not a fault
The Branch link click identifier and the deferred deep link payload present on the account
Sent from your own database
Deduplicated correctly
Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.
Reconciles with the source
Actually broken
The Branch link click identifier and the deferred deep link payload 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
Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.
Nobody has reconciled it
Supabase Auth → Branch · diagnose
Diagnostic order — Supabase Auth → Branch
- 01
Count accounts carrying the Branch link click identifier and the deferred deep link payload
- 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
Measure your organic install share and ask whether it is plausible
An implausibly large organic share is usually broken attribution rather than genuine word of mouth.
- 05
Read the match rate, not the success message
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
Supabase Auth → Branch · prove
How it gets proven — Supabase Auth → Branch
Source of truth
Your own database, joining the auth user to the subscription or order table.
- The Branch link click identifier and the deferred deep link payload confirmed present on a live account.
- Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
- Paid conversions reconciled by query against imported conversions, with identifier survival verified across OAuth.
Supabase Auth → Branch · free audit
What we check in the free audit
- Count accounts carrying the Branch link click identifier and the deferred deep link payload
- Follow one real conversion end to end
- Check whether identity and billing are in the same database
- Measure your organic install share and ask whether it is plausible
- 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 → Branch · when not to buy
When you don't need this — Supabase Auth → Branch
- Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the Branch link click identifier and the deferred deep link payload.
- If billing lives in a separate system, the join is a real integration again and the advantage disappears.
- If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.
Supabase Auth → Branch · what we deliver
What gets built — Supabase Auth → Branch
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 Branch
The Branch server-to-server events API, posted from your backend with the user identity and event data.
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 → Branch questions, answered
Set the Supabase user UUID as the Branch identity on web and in the app, store the deep link data on the user row at first login, and send paid conversions from your backend.
Test carefully. The login token lives in the link, and a wrapper link or app routing that drops it breaks sign-in.
Almost always because the Branch link click identifier and the deferred deep link payload 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.
Branch stores the click context and replays it into the app on first open, which is how a marketing campaign survives an install. That handoff is probabilistic on iOS and increasingly constrained, so the deep link data can arrive incomplete or not at all — and when it does not, the user looks organic.
Your own database. Send paid conversions from a query joining auth users to billing.
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
More on Supabase Auth → Branch
- Firebase Auth → BranchConnecting Firebase Authentication to Branch
- Supabase Auth → Google AdsConnecting Supabase Auth to Google Ads
- Supabase Auth → MetaConnecting Supabase Auth to Meta Conversions API
RELATED GUIDES
Where Supabase Auth → Branch fits in the rest of your tracking
- Clerk → BranchConnecting Clerk to Branch
- Firebase Auth → BranchConnecting Firebase Authentication to Branch
- Auth0 → BranchConnecting Auth0 to Branch
- Supabase Auth → AppsFlyerConnecting Supabase Auth to AppsFlyer
- B2BConversion tracking for B2B, from first touch to closed-won
- Okta → BranchConnecting Okta to Branch
Free · 30 min
Get Supabase Auth and Branch joined properly
Free30 minutesNo obligation
