Sendity Client

Browser UI, server-owned verification.

The Sendity Web Client is the browser-side authentication surface. It renders the challenge code, channel actions, progress states and browser events while campaign configuration, channel routing and verification rules stay on the server.

Think of it as the visible edge of the flow: friendly enough to drop into a login screen, but deliberately thin from a security perspective. It can tell your frontend that a verification happened; it cannot decide that a user is authenticated. That decision stays with your backend or framework adapter.

Mount it where authentication happens.

Use the raw <sendity-auth> element or a framework adapter component in your login, signup or step-up flow. The Client owns the visible challenge and channel UI, but it does not create your application session by itself.

Let the server decide the verification action.

The Client sends the Campaign ID, current origin and localized message templates to the Sendity API. The API returns one verification_action containing the channel, optional transport, primary recipient and complete action URL. Phone verification can use WhatsApp or the configured SMS/RCS flow. The Client uses the server-built URL unchanged for the button and QR code; an optional RCS service ID remains encoded in the sms: link.

Verify before opening a session.

Browser events are UI signals. Your backend must verify the signed result, reject replay or expiry, map the verified subject to a local user and only then create the session. Framework adapters automate that path, but the trust boundary stays the same.

Runtime contract

The public contract is intentionally small: a Campaign ID passed as public-key, optional rendering attributes, the shared corner-radius property and CustomEvent notifications. Application credentials stay in your backend. A short-lived AuthRequest secret is returned by the API and kept in browser session storage only; an application client secret is never rendered into the page.

<script type="module" src="https://sendity.io/vendor/sendity/client/sendity-client.js"></script>

<sendity-auth
  public-key="app_01HX..."
  lang="en"
></sendity-auth>

Where to go next

Your Sendity account

Verify your phone number or email address with one message to sign in.

Already created a passkey?