aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sockets.ts
Commit message (Collapse)AuthorAgeFilesLines
* sockets: verify JWT signatures on the websocket auth path (S1)Adam Soltys2026-08-071-2/+14
| | | | | | | | | | | | | | The websocket auth gate used jwt.decode(), which parses the payload but never checks the signature — anyone could forge {id: <victim uid>} (alg:none or any key), register their socket under the victim's uid, and receive every emit for that account. Switch both track() and the "login" gate to jwt.verify(token, config.jwt), rejecting forged/altered tokens. Also project the full-record socket emits through pick(user, whitelist) so a "user" event can never carry the bcrypt hash, TOTP secret, or PIN — matching the shape /login and /me already return. Co-Authored-By: Claude Opus 4.8 <[email protected]>
* log login failuresAdam Soltys2025-02-041-1/+1
|
* biome lintAdam Soltys2024-10-311-12/+13
|
* rm logAdam Soltys2024-10-121-1/+0
|
* rm logAdam Soltys2024-10-121-1/+0
|
* clean up invoice subscriptionsAdam Soltys2024-10-111-0/+6
|
* check invoice id not hashAdam Soltys2024-10-111-5/+5
|
* more ts housekeepingAdam Soltys2024-08-261-6/+2
|
* typescriptAdam Soltys2024-08-261-0/+161