mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 08:08:36 +01:00
- lib/config/auth.ts: add PASSWORD_RESET_TOKEN_MAX_LENGTH and
RESET_TOKEN_IDENTIFIER_PREFIX ("reset:") so the token schema cap and
identifier prefix have a single source of truth
- auth routes: import and use both new constants (4 occurrences of
hardcoded "reset:" prefix replaced)
- lib/utils/validate.ts: export UUID_RE so routes don't each define their
own copy of the same regex
- documents routes (GET + upload): import UUID_RE instead of local re-def
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>