Skip to main content
Supabase Auth → AttentiveIntegration guide

Connecting Supabase Auth to Attentive

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. Attentive is SMS, where the identifier is a phone number, the consent rules are legal rather than advisory, and a mistake reaches the customer's pocket within seconds. The join between them succeeds or fails on one thing: whether the subscriber's phone number reaches the Supabase user before the conversion happens, because Attentive can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Supabase Auth to Attentive: a verified phone is not SMS consent

A phone number verified through Supabase phone auth is not SMS marketing consent, so never load auth numbers into Attentive. For people who opted in through Attentive's own flow, send trial, paid and cancelled events keyed on a normalized phone number from a query joining auth users to billing. Never trigger journeys on sign-in events.

Supabase Auth can sign users in with a phone number and a one-time code, which leaves you with a verified number on every auth user. That verification is not SMS marketing consent. Loading those numbers into Attentive as subscribers, or sending events that trigger marketing texts to them, is the mistake this pair invites. Consent has to come through Attentive's own opt-in flow, or a disclosure that meets the same standard, and it is a separate record from the login.

Once someone has opted in through Attentive, the database becomes useful. Send events keyed on their phone number from a query joining auth users to billing: trial started, subscription paid, subscription cancelled. Normalise the stored number to the format Attentive expects before sending, and check how Supabase stored it, since a missing country code means no match and no error.

Phone auth also creates an awkward overlap: the login code and the marketing messages arrive at the same number, possibly from similar-looking senders. Keep marketing content out of the hour after a login code is sent, and never let an Attentive journey fire on the auth event itself. A sign-in is not a buying signal, and a text on every login teaches users to ignore the codes.

Supabase Auth → Attentive · what breaks

Why this join usually fails — Supabase Auth → Attentive

  1. 01

    The subscriber's phone number 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

    Consent state treated as a tracking detail rather than a legal one

    Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.

  4. 04

    Nothing reconciles afterwards

    Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.

Supabase Auth → Attentive · the fix

What working looks like — Supabase Auth → Attentive

  • The subscriber's phone number on every account

  • Conversions arriving in Attentive

    The event lands on the subscriber, triggers the journeys that depend on it, and becomes available for segmentation.

  • Reconciled against the source

Supabase Auth → Attentive · architecture

How Supabase Auth and Attentive 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

    Attentive needs a click to match

    Attentive needs the subscriber's phone number, the event name and its properties. It also needs the subscriber to have consented — an event about someone who never opted in cannot legally be messaged, whatever the event says.

  3. 3

    The identifier is the bridge

    The subscriber's phone number, 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

    Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.

Supabase Auth → Attentive · normal or broken

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

Normal, not a fault

  • The subscriber's phone number present on the account

  • Sent from your own database

  • Deduplicated correctly

    Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.

  • Reconciles with the source

Actually broken

  • The subscriber's phone number 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

    Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.

  • Nobody has reconciled it

Supabase Auth → Attentive · diagnose

Diagnostic order — Supabase Auth → Attentive

  1. 01

    Count accounts carrying the subscriber's phone number

  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

    Verify that events for non-consented customers cannot trigger a send

    Check the journey's entry conditions, not the event pipeline. The pipeline will happily deliver an event about someone who never opted in; the journey is what must refuse to act on it.

  5. 05

    Read the match rate, not the success message

    Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.

Supabase Auth → Attentive · prove

How it gets proven — Supabase Auth → Attentive

Source of truth

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

  • The subscriber's phone number confirmed present on a live account.
  • Events confirmed on subscriber records with consent state verified, and a test proving a non-consented profile does not trigger a send.
  • Paid conversions reconciled by query against imported conversions, with identifier survival verified across OAuth.

Supabase Auth → Attentive · free audit

What we check in the free audit

  • Count accounts carrying the subscriber's phone number
  • Follow one real conversion end to end
  • Check whether identity and billing are in the same database
  • Verify that events for non-consented customers cannot trigger a send
  • 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 → Attentive · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the subscriber's phone number.
  • If billing lives in a separate system, the join is a real integration again and the advantage disappears.
  • If you do not have a consented SMS list, the integration is the least of the work. Building the list compliantly comes first, and no event pipeline substitutes for it.

Supabase Auth → Attentive · what we deliver

What gets built — Supabase Auth → Attentive

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

    The Attentive events API, posted server-side from your order system with the subscriber's phone number and the 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Supabase Auth → Attentive questions, answered

Not as marketing subscribers based on login alone. A verified login number is not SMS consent; users need to opt in through a compliant flow first.

Free · 30 min

Get Supabase Auth and Attentive joined properly

Free30 minutesNo obligation