Zum Hauptinhalt springen

Modus

BOT_DETECTION_MODE live
HMAC key Configured (64 chars)

Konfiguration

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)

Live-Demo

Solve the captcha below.

Geschützte Endpunkte

  • 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.

Geht dieses Pattern noch besser? Sag uns, wie.

Feedback geben