Docs
User sign-in
Your visitors sign in with their Kazibo account and your app knows who they are. No login page, no passwords, no sessions to write.
How it works
Your app writes no login page, no passwords and no sessions. Kazibo handles it in front of the app: it signs the visitor in, then gives the app, on every request, their ID, their verified email address and their name.
Just ask:
add sign-in to the app
Your agent suggests Kazibo sign-in first. It writes a system of its own only if you turn it down.
Three modes
| Mode | What happens |
|---|---|
off | the default: Kazibo does nothing |
optional | the app is open to everyone; those who sign in are recognized |
required | nobody gets in without signing in |
The change applies within a second, with no redeploy. optional suits a public app where some things need a signed-in person, like writing a message. required closes the whole app.
What the visitor sees
- They click "Sign in" in your app.
- They land on a Kazibo page that names your app, and enter their email address.
- They get a code by email, or use a passkey if they made one.
- The first time, Kazibo asks for their name, then their consent: your app wants to know their name and email address.
- They come back to your app, signed in for 30 days.
Nobody needs an invitation for this: anyone can create a Kazibo account by proving their address. The page also says the app is made by a Kazibo user, not by Kazibo.
What the app receives
Three headers on every request from a signed-in person:
| Header | Example | Meaning |
|---|---|---|
X-Kazibo-User-Id | usr_7k2m9x4qa3bz5c8d | the person's ID in this app: store users by it |
X-Kazibo-User-Email | lea@example.com | their address, verified with a code |
X-Kazibo-User-Name | L%C3%A9a%20Martin | their name, encoded: the app decodes it before showing it |
Only Kazibo writes these headers: any that a visitor sends themselves are removed. The ID doesn't change as long as the app exists, and it differs from one app to the next.
The app also gets three addresses of its own, with nothing to write: /.kazibo/login to sign in, /.kazibo/logout to sign out, and /.kazibo/me, which says who is signed in, for a site with no server.
An app for a few people
Kazibo says who the person is; your app decides what they may do. For a private app:
make the app private: only lea@example.com and tom@example.com can get in
Your agent switches the app to required and adds a single check, in front of every page: the address received must be on the list. The list is kept as a secret in the app. Someone else can sign in, but they're turned away.
Who signed in
In the platform, the app's page has a "People" section: each person's name, address and last sign-in. You can remove someone there; it signs them out, and they can sign in again. To keep someone out, the app's list is what counts.
Your users' data
What your app stores about its users belongs to it, and you're responsible for it. When a person withdraws consent or deletes their Kazibo account, the app no longer receives them; what it kept about them stays in the app.
For the full walkthrough, with a guestbook: add sign-in with Kazibo.