Status: built (2026-10-05). Tests: apps/auth-broker/tests/access.test.ts.
Passkin lets a project decide who may be a user: address lists, a block on + tags, a sign-up
mode (open, invitation-only, waitlist), invitations by email, and a waitlist that fills from a form or from people who
try to sign in. Clerk calls these allowlists, blocklists, restricted mode and the waitlist; Auth0 needs a rule. Here they
are settings, checked in one place (checkAdmission, apps/auth-broker/src/join.ts) that the browser flow and native
sign-in both pass through, so neither can skip them.
The rules
- Address rules apply to everyone, including people already in: a
blocklistentry or anallowlistthat does not contain the address refuses the sign-in. Entries are an address (ada@example.com), a domain (example.com, which means that domain exactly) or subdomains (*.example.com). Blocks win over allows. Up to 1,000 entries each. block_subaddressesrefusesname+tag@…for new people only (one mailbox, many accounts); people already in are not locked out by a setting changed later.- The sign-up mode applies to people new to the project only:
open(default),invite_only, orwaitlist. Someone the project already has — signed in before, or imported — is never turned away by the mode. - Disposable addresses stay a separate switch (
block_disposable_emails).
The check runs before a passkey offer or a consent screen — no use asking for consent to a site that will refuse the
person — and again when joining. A refusal about the address (blocked, not allowed, + tag, invitation-only) appears on the
sign-in page so the person can try another way in; a waitlisted person sees a friendly "you are on the waitlist" page.
curl -X PATCH https://auth.passk.in/v1/manage/projects/$PROJECT \
-H "Authorization: Bearer $DASHBOARD_TOKEN" -H "Content-Type: application/json" -d '{
"sign_up_mode": "invite_only",
"allowlist": ["acme.com", "partner@example.org"],
"blocklist": ["spam.example"],
"block_subaddresses": true
}'
Invitations
POST /v1/invitations (secret key; or /v1/manage/projects/:pid/invitations):
{ "email": "ada@example.com", "public_metadata": {"role": "editor"}, "redirect_url": "https://shop.example.com/welcome", "locale": "en" }
or "emails": [...] for up to 50. Passkin stores the invitation (14 days) and emails the person: the project's name and a
link. redirect_url must be on the project's own sites — an application's allowed origin or the origin of a web
redirect address — so Passkin's mail cannot be used to send people anywhere; without it the link is the project's own site.
public_metadata is merged into the user's public metadata when they join through it.
An invitation is permission for an address, proven by signing in — there is no token in the email. Whoever receives a
forwarded message gets nothing unless they can sign in as the invited address. Invitations expire, can be revoked
(POST /v1/invitations/:id/revoke), and a newer one for the same address replaces an older one.
Mail is sent on the project's behalf, so it is bounded: 100 invitations an hour and 500 a day per project (429 beyond).
The waitlist
With sign_up_mode: "waitlist":
- A person who signs in and is new to the project is put on the list as a verified entry (they proved the mailbox).
- A form on your landing page can post to
POST https://auth.passk.in/p/<publishable key>/waitlistwith{"email": "…"}(CORS for the project's own sites; 10 an hour per caller; the same answer whether or not the address is already there). Those entries are unverified until the person signs in. - You list entries (
GET /v1/waitlist?status=pending|invited|rejected), invite one (POST /v1/waitlist/:id/invite, which creates the invitation and sends the email, and takes the same body), reject one, or remove one.
Events
invitation.created, invitation.accepted, invitation.revoked, waitlist.joined, waitlist.invited — see
WEBHOOKS.md.
Not built yet
Invitation reminders, per-organization rules (with organizations), bulk waitlist actions ("let in the first 100"), CSV import of invitations (use the API), and a hosted waitlist page.