Better Auth rate limit writes a row per auth request #175
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#175
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(session 27) Better Auth now counts in the
rateLimittable, so every/api/auth/*request reads and writes a row (sign-in, passkey list, sign-out; notgetSessioninside server functions). Fine at one user. The limiter is on only whenNODE_ENV=production(Vercel sets it; a localbun run startdoes not).Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.
What this is about. Better Auth's rate limiter stores its counts in the database (
rateLimittable), so every/api/auth/*request (sign-in, passkey list, sign-out) reads and writes a row. It's only on in production (NODE_ENV=production, which Vercel sets; a localbun run startdoesn't).Status (checked 2026-11-08): unchanged, and fine at this scale.
Keep as: a note. It only matters with many users, and then the move is a memory or KV store.