aboutsummaryrefslogtreecommitdiffstats
path: root/lib/auth.ts
Commit message (Collapse)AuthorAgeFilesLines
* auth: log evicted-account auth attempts with source IPAdam Soltys2026-06-281-1/+7
| | | | | | | | Emit a greppable EVICTED_AUTH line (username + cf-connecting-ip) when an evicted account's JWT is used, so the real-time auto-banner can block the source IP at the edge immediately rather than waiting for the hourly scan. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* auth: hard-evict banned accounts at the JWT layerAdam Soltys2026-06-271-0/+14
| | | | | | | | | | Add an `evicted` set check in the JWT strategy: an evicted account fails authentication on every request and every endpoint, regardless of source IP. The existing blacklist only blocks sends, so a compromised/abusive JWT could still authenticate and read/probe; eviction kills it outright. Matches on uid or username so a rename can't evade it. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* support readonly tokensAdam Soltys2025-09-041-3/+11
|
* record lnurl invoiceAdam Soltys2025-07-161-2/+2
|
* biome lintAdam Soltys2024-10-311-3/+3
|
* typescriptAdam Soltys2024-08-261-0/+51