Files
netris-nestri/apps/api/test
Wanjohi 37e4c383b9 feat(machine): bound how many install tokens one person can mint
An install token is minted by a signed-in call a script can repeat, and
each one is a host waiting to be added. Nothing limited how many could
be made or left lying unspent.

Minting now refuses, per person, past 5 tokens in a rolling hour or 3
that are unspent and unexpired, with 429 `rate_limit` /
`too_many_requests` and a message a terminal can print as it is. The
counts are taken while holding the person's own row, so two requests
at the same instant cannot both pass.
2026-10-16 00:59:55 +03:00
..