Skip to content

HTML-only quickstart

Get a working "Sign in with Little X Little" button on your page in 60 seconds. No build tools, no npm, no Composer.

1. Drop the script tag

Put this in your <head> (or just before </body>):

```html

```

2. Render the button

Anywhere in the page body:

```html

```

3. Receive the credential

```html

```

4. Verify on the server

```php

'YOUR_CLIENT_ID']); $payload = $client->verifyOneTap($_POST['credential']); // $payload['sub'] → stable account code // $payload['email'] → email // $payload['lxl.access'] → permission claims ``` That's it. Behind the scenes the SDK handled PKCE, opened a hidden iframe for silent sign-in, and posted the JWT back to your callback. ## What you get for free - :material-cursor-default-click: **Pre-rendered button** that adapts to light/dark mode. - :material-bell-ring: **One-Tap prompt** for users already signed into Little X Little. - :material-shield-check: **PKCE** automatically (no client secret needed in the browser). - :material-flash: **Silent re-auth** if the user already granted consent. ## Next steps - [Customize the button & One-Tap](../guides/one-tap.md) - [Read the JWT claims](../reference/claims.md) - [Verify in PHP](php-sdk.md) / [Verify in Node](oauth-from-scratch.md#verifying-in-nodejs) ?>