Parent
PRD #2
What to build
A signed-in user can mint API tokens for agents and revoke them, from a "Connect an agent" page. Tokens are shown once and stored only as a hash (HMAC with a server-side pepper); a non-secret prefix is kept for display. Tokens carry scopes and an expiry.
Acceptance criteria
Blocked by
Parent
PRD #2
What to build
A signed-in user can mint API tokens for agents and revoke them, from a "Connect an agent" page. Tokens are shown once and stored only as a hash (HMAC with a server-side pepper); a non-secret prefix is kept for display. Tokens carry scopes and an expiry.
Acceptance criteria
ApiTokenmodel stores a hashed token (unique), display prefix, scopes, expiry, and revocation; schema syncedpnpm checkpassesBlocked by