mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-04 11:48:27 +01:00
Products that created people before they had a password (an invitation, a login code) can now hand the credential lifecycle to AccountKit: POST /api/auth/provision/claim gives that identity its first password under its existing user id. A second identity joins an existing account only on that account's own password; an invited account without one must recover through its mailbox first. Verified addresses are never moved, .invalid addresses are refused, single-use proofs are given back on failure, and with mail configured an unverified address gets a link, not a session. A completed password reset now verifies the address it was sent to when that address is unchanged, so an imported or invited account with an unverified address is not refused at sign-in after recovering. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>
1 line
470 B
Plaintext
1 line
470 B
Plaintext
{"version":3,"file":"claim-errors.d.ts","sourceRoot":"","sources":["../../src/auth/claim-errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE1E,kGAAkG;AAClG,MAAM,MAAM,WAAW,GACnB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC"} |