Skip to main content
Supabase Auth → PartnerStackIntegration guide

Connecting Supabase Auth to PartnerStack

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. PartnerStack commissions partners on recurring subscription revenue rather than on a single order, which makes it the one destination here where a conversion you send creates a payment obligation that repeats every month. The join between them succeeds or fails on one thing: whether the PartnerStack referral key reaches the Supabase user before the conversion happens, because PartnerStack can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

PartnerStack referral keys on Supabase users, paid monthly

Carry the PartnerStack referral key through signup into user metadata and create the customer with the Supabase user UUID as key, not email. Revenue comes from your billing system: use PartnerStack's billing integration if supported, or report payments from the subscriptions table. Treat a canceled subscription row as the reversal signal, tested before launch.

PartnerStack suits the typical Supabase product, a subscription SaaS, better than most destinations here. The referral key has to reach the user row: capture it on the landing page, carry it through signup as user metadata or through first-party storage if they use OAuth, and create the PartnerStack customer at signup using the Supabase user UUID as the customer key. Email is the wrong key here; a user who changes their auth email would otherwise look like a second customer and a second commission line.

Revenue is where the source matters. Supabase holds identity, not billing, so the recurring amounts come from whichever billing system writes to your subscriptions table. Check whether PartnerStack's own billing integration, if you bill through a processor it supports, reports payments directly; then the Supabase side only has to create the customer with the right key at the right moment. If it does not, a scheduled query over the subscriptions table can report each recognized payment against that UUID.

Cancellations need the same care as payments, because recurring commission continues until something says stop. A status change to canceled on the subscription row, joined back to the user UUID, is the reversal signal. Test it on a canceled test account before launch, because a partner paid for a year on a user who left in month two is money you will not get back.

Supabase Auth → PartnerStack · what breaks

Why this join usually fails — Supabase Auth → PartnerStack

  1. 01

    The PartnerStack referral key never reaches Supabase Auth

    OAuth flows redirect off-site and back, which can lose an identifier captured before login.

  2. 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.

  3. 03

    A commission that recurs on revenue that stopped

    The mirror of the usual problem. If cancellations are not reported back, partners keep earning on subscriptions that churned months ago. Every conversion pipeline needs reversals; this one needs them because real money leaves the building otherwise.

  4. 04

    Nothing reconciles afterwards

    PartnerStack shows attributed customers and accruing commission per partner. Reconcile the commissionable revenue against your billing system's active subscriptions, not against its historical sales.

Supabase Auth → PartnerStack · the fix

What working looks like — Supabase Auth → PartnerStack

  • The PartnerStack referral key on every account

  • Conversions arriving in PartnerStack

    The customer is attributed to a partner, and commission accrues against the recognized revenue on the schedule you configured.

  • Reconciled against the source

Supabase Auth → PartnerStack · architecture

How Supabase Auth and PartnerStack actually connect

  1. 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. 2

    PartnerStack needs a click to match

    PartnerStack needs the referral key, the customer identifier and the subscription value. Recurring commission also needs the ongoing revenue reported, not just the first payment.

  3. 3

    The identifier is the bridge

    The PartnerStack referral key, captured at the visit and carried into the Supabase user.

  4. 4

    The event source decides reliability

    Send paid conversions from a query joining auth users to billing.

  5. 5

    Deduplication at the destination

    Deduplication is on your customer identifier. Reporting the same subscription twice creates two commissionable relationships against one paying customer, and the error compounds monthly rather than once.

Supabase Auth → PartnerStack · normal or broken

Working vs. broken, side by side — Supabase Auth → PartnerStack

Normal, not a fault

  • The PartnerStack referral key present on the account

  • Sent from your own database

  • Deduplicated correctly

    Deduplication is on your customer identifier. Reporting the same subscription twice creates two commissionable relationships against one paying customer, and the error compounds monthly rather than once.

  • Reconciles with the source

Actually broken

  • The PartnerStack referral key 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

    The mirror of the usual problem. If cancellations are not reported back, partners keep earning on subscriptions that churned months ago. Every conversion pipeline needs reversals; this one needs them because real money leaves the building otherwise.

  • Nobody has reconciled it

Supabase Auth → PartnerStack · diagnose

Diagnostic order — Supabase Auth → PartnerStack

  1. 01

    Count accounts carrying the PartnerStack referral key

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether identity and billing are in the same database

    If they are, most of the usual integration complexity is unnecessary.

  4. 04

    Check whether churn events reach PartnerStack at all

    In most implementations the new-subscription path was built and the cancellation path was not, because only one of them is exciting.

  5. 05

    Read the match rate, not the success message

    PartnerStack shows attributed customers and accruing commission per partner. Reconcile the commissionable revenue against your billing system's active subscriptions, not against its historical sales.

Supabase Auth → PartnerStack · prove

How it gets proven — Supabase Auth → PartnerStack

Source of truth

Your own database, joining the auth user to the subscription or order table.

  • The PartnerStack referral key confirmed present on a live account.
  • Commissionable recurring revenue reconciled against active subscriptions in billing, with cancellations proven to reverse.
  • Paid conversions reconciled by query against imported conversions, with identifier survival verified across OAuth.

Supabase Auth → PartnerStack · free audit

What we check in the free audit

  • Count accounts carrying the PartnerStack referral key
  • Follow one real conversion end to end
  • Check whether identity and billing are in the same database
  • Check whether churn events reach PartnerStack at all
  • Read the match rate, not the success message

Checked against

Your own database, joining the auth user to the subscription or order table.

Get my free conversion tracking audit

Free30 minutesNo obligation

Supabase Auth → PartnerStack · when not to buy

When you don't need this — Supabase Auth → PartnerStack

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the PartnerStack referral key.
  • If billing lives in a separate system, the join is a real integration again and the advantage disappears.
  • If you run no partner or affiliate programme, there is nothing to send here. If you run one on one-off sales rather than subscriptions, the recurring-commission complexity does not apply to you.

Supabase Auth → PartnerStack · what we deliver

What gets built — Supabase Auth → PartnerStack

  • 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 PartnerStack

    Server-side reporting from your billing system, with the referral key, customer identifier and the recurring revenue as it is recognized.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Supabase Auth → PartnerStack questions, answered

The auth user's UUID. It never changes, unlike email, so renewals and cancellations always land on the same PartnerStack customer.

Free · 30 min

Get Supabase Auth and PartnerStack joined properly

Free30 minutesNo obligation