Accounts 1.1.0: moving Events' users in, people.* requests, new recovery codes

POST /api/accounts/v1/requests (crosscode.identity-request/1): import.* keeps
each person's Events id as sub, password hash and authenticator secret
(sealed in transit), consent, notices and lockout; linked when the email
already has an account. people.* for product admins, limited to people the
product knows. New recovery codes after the first 2FA sign-in for people
moved in with 2FA. screen=signup. auth-client: request(), seal(), signUp.
8 new tests (47 in all).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 13:40:15 +02:00
co-authored by Claude Opus 5.5
parent 08fef930c1
commit 733992e917
19 changed files with 834 additions and 39 deletions
@@ -0,0 +1,70 @@
{
"schema": "crosscode.identity/1",
"exportId": "f6b37ff7-057a-4d31-980d-a01aa1a2509f",
"generatedAt": "2026-11-19T11:39:46.247Z",
"parts": [
{
"product": "accounts",
"sections": [
{
"key": "profile",
"title": "Your account",
"records": [
{
"name": "Thandi Test",
"givenName": null,
"familyName": null,
"email": "mydata@hope.test",
"emailVerified": true,
"phone": null,
"twoFactor": null,
"createdAt": "2026-11-19T11:39:45.934Z",
"lastSignInAt": "2026-11-19T11:39:46.130Z"
}
]
},
{
"key": "news_consent",
"title": "News consent",
"records": []
},
{
"key": "privacy_notice",
"title": "Privacy notices accepted",
"records": []
},
{
"key": "sign_ins",
"title": "Sign-ins and changes",
"records": [
{
"type": "sign_in",
"at": "2026-11-19T11:39:46.132Z",
"ip": "127.0.0.1",
"device": "node"
}
]
}
]
},
{
"schema": "crosscode.identity/1",
"exportId": "f6b37ff7-057a-4d31-980d-a01aa1a2509f",
"sub": "ab5df919-e6bc-4158-bb65-7cf251561c9a",
"product": "website",
"generatedAt": "2026-11-19T11:39:46.237Z",
"sections": [
{
"key": "pages",
"title": "Pages you edited",
"records": [
{
"title": "Home"
}
]
}
]
}
],
"missing": []
}