Skip to main content

One sign-in, one person

Lurk finds a person by the issuer and the token’s subject (sub) together. It never uses an email, a name or a provider name. The same sub under another issuer is a different identity. The link is a binding: your project, the issuer, the subject and one person. Lurk stores the subject sealed and hashed, and never returns it.

First sign-in

When a sub has no binding, Lurk makes a new person in that issuer’s namespace, gives them the project’s starting units and binds them. The audit line names the issuer and the person, never the subject. Several first requests at once make one person. A first sign-in is refused (401 invalid_key) while the project has no limit on new people. Save new_people_per_hour (1 to 1,000) in the dashboard, under Settings > Sign-in, in Events people’s apps may send. Once the limit is saved, each new person takes one place in the current UTC hour. When the hour is full, the call is answered rate_limited with Retry-After. Setting it back to null stops all new people and leaves the people already bound as they are. A paused issuer cannot make a person. To tie a provider user to an existing person, an owner or admin maps it, in person: POST /v1/issuer-identities with issuer_id, subject and user (the usr_… ID). In the dashboard, open Settings, then the Sign-in tab. Take the subject from your provider, because Lurk never shows it. A map is refused if the subject is already bound (unbind it first), if the person was merged away or if the issuer is archived. A paused issuer can be mapped.
  • GET /v1/issuer-identities lists bindings, newest first. Filter by issuer_id or by user. Filtering by a person also lists the people merged into them. A project key or a brand agent can read the list, and lurk.issuer_identities.list is an MCP tool. The subject is never returned.
  • DELETE /v1/issuer-identities/{id} removes a binding. The person stays. The next sign-in with that subject makes a new person, unless you map it first or the new-people limit refuses it.
Mapping and removing are for an owner or admin in person. A key or an agent gets approval_required.

Receipts a device sees

What receipts a device sees depends on how the person was reached:
  • A person made at first sign-in, not merged: all of their receipts.
  • A person you mapped: receipts from when the binding was made, not before.
  • A person merged away, whose sign-in now reaches the person kept: receipts from the merge, or from the link if that is later. If Lurk has no record of when the merge happened, the device sees nothing from before the request.
Receipts from before that point are not shown to the device, and since never goes earlier.

Merge and unmerge

A binding stays on the person it was made for and follows the merge. After you merge person A into person B, A’s sign-in reaches B. See Merging people. POST /v1/users/unmerge gives the binding back to A.

Block and unblock

A block stops a person’s sign-in on their next request. It is checked after merges are resolved, on every request, with nothing cached.
  • POST /v1/users/block with { "user": "usr_…" }. POST /v1/users/unblock lifts it.
  • Only an owner or admin, in person. A key or an agent gets approval_required.
  • Blocking a person who was merged away blocks the person kept, and their credentials are refused too.
  • A blocked person gets 403 forbidden on /v1/client/*.
  • A merge is refused when the person being merged away is blocked. An unmerge copies the block onto the person who returns.
Use a block when a token must stop working before it expires. Lurk does not ask the provider whether a session is alive.

Pause and archive

  • Pause an issuer to stop all its tokens at once. Bindings stay.
  • Archive an issuer to retire it for good. No credential can use it. Bindings and receipts stay. This cannot be undone, but its address can be set up again as a new issuer.

Test a token

Before you rely on an issuer, test a real token. The test says whether the issuer would accept it and who it would reach. For a generic oidc issuer the test is also a step to turning it on: activate is refused until a token test was verified at the issuer’s current revision, at most 24 hours ago. A later refused test clears that. Lurk records only the revision and the time, never the token. Supabase and Clerk issuers are not affected. See Other providers.
  • In the dashboard, choose Test a token on the issuer and paste a fresh token.
  • The token goes in the body only. A query string is refused. It is not stored, logged or put in an audit line, and the answer never holds it, its claims or its subject.
  • It is for a person in the dashboard or the API as a member who may write: an owner, admin or developer. A project key, an agent and MCP cannot call it, and it is not an MCP tool.
  • About 10 a minute for each member and 60 an hour for each project.
  • It reads and creates nothing: no person, no binding.
An answer is verified or refused. not_yet_available is the answer wherever sign-in is not on, and for a new subject while no limit on new people is saved. ready does not spend the hour’s new-people places. A refusal has a code. See Troubleshooting.