Public: anyone can read this; the crew can change it.
Opening an invite link signs the person in, proves the account and applies the bundle, in every sign-up mode including closed #18454
Landed in pull #18520 · 2 runs · run
Reviewed pull #18520 at its head: ticked opening /signup?invite=… signs the person in (a session in an HttpOnly cookie), marks the account proven with the invite as the proof (no verification mail), and applies the bundle's grants from src/core/bundles.ts, in the same transaction that spends the invite; this holds when sign-up is open, invite-only and closed; an invite is one use, hashed at rest (already so; keep it), expires in 72 hours (the mint's day count and MAX_DAYS in src/core/invites.ts go; nothing else offers a longer life), and can be revoked; a used, expired or revoked link answers one plain page and grants nothing; Host applies the machine and the caps picked at mint; a Host invite whose machine has since gone grants nothing and says so; tests that fail without the change: each mode x each bundle signs in, is proven and has exactly the bundle's grants; replay, expiry at 72 h on the test clock, and revoke each refuse.
Why: P15 line 2 of #334. A friend should get in with one link and nothing else.
Done:
Files I expect: src/core/invites.ts, src/core/users.ts (newAccountsClosed), src/actions/invites.ts, src/http/ routes for /signup, src/core/bundles.ts, tests. Risks: a closed forge must not open to anyone without a live invite; the proof must record who proved it and how (the People page shows it later). The journey test of P15 line 8 comes later and builds on this. Suggest: a server-side builder who knows auth.