Перейти к основному содержимому

Режим

BOT_DETECTION_MODE live
HMAC key Configured (64 chars)

Конфигурация

Algorithm PBKDF2/SHA-256
Cost 100,000
Challenge expiry 300s
Replay store Upstash Redis
Replay key prefix altcha:nonce:
Replay TTL 10 min
Challenge rate limit 30 per 60 s (per client IP)

Живая демонстрация

Solve the captcha below.

Защищённые эндпоинты

  • POST /api/auth/sign-in/magic-link — magic-link send
  • POST /api/auth/email-otp/send-verification-otp — email OTP send

Enforcement happens in authCaptchaGate (a SvelteKit handler in hooks.server.ts) before the request reaches Better Auth.

Думаете, этот паттерн можно сделать лучше? Расскажите как.

Оставить отзыв