4dcfaa00

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Use generic rate limit error in login handler (#154)

Change Limiter.Allow() to return nil or ErrLimitExceeded instead of
bool so callers propagate the error directly. Update the shared-secret
authenticator and login handler to use ratelimit.ErrLimitExceeded,
removing the handler's import of the auth implementation package.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/154

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 0s 3s 3s 4s 0s
Eval 3s 54s 54s 57s 0s
Build 6s 1m45s 1m14s 1m21s 22s
Suite 0s 2m43s 1m20s 1m21s 23s

Timeline

0s10s20s30s40s50s