Laravel integration

Use Sendity in a Laravel application.

Install the Laravel auth adapter when you want Sendity to feel native in a Laravel app. The adapter renders the Client, verifies the signed result on your server and signs the user into your application.

composer require sendity/laravel-auth:^0.3

Configure the hosted app

For the default Cloud flow, configure the public app id, result-token issuer, expected audience and Sendity public verification key. The expected audience is the same value as the public app id; Sendity-issued result tokens are always app-bound and do not support a separate global JWT audience. Keep the hosted API and Client asset defaults unless you self-host. Browser AuthRequest client_secret values are per-request session credentials returned by the API; do not put them in Laravel env files, Blade, JavaScript or HTML.

SENDITY_APP_PUBLIC_KEY=app_01HX...
SENDITY_SERVER_URL=https://sendity.io/api
SENDITY_ISSUER=https://sendity.io
SENDITY_AUDIENCE=app_01HX...
SENDITY_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----..."

Render the Client

Place the Blade component where the proof should start. The adapter includes the Client script once, passes the public app id and relies on the server-owned session_handoff_url returned by Sendity for session handoff.

<x-sendity />

Render app-owned alternatives such as Passkeys next to or below the Client in your own layout. They are separate authentication options, not slots inside the Sendity proof component.

<x-sendity />

<div class="my-4 border-t"></div>

<button type="button">
    Sign in with a passkey
</button>

Customize account handling

Your Laravel app still owns user lookup, creation, linking and authorization. Use the adapter hooks and Laravel events to map verified addresses to your domain model, then redirect users into the right product area.

Self-hosted Sendity uses the same adapter boundary. Point the adapter and Client at your own server only when you operate the verification backend yourself.

Cookie Settings

Sendity uses privacy-friendly analytics to learn which pages help developers. We only load Google Analytics after you consent.

Sign in

Already created a passkey?