refactor(auth-ui): i18n, security fixes, type safety across auth components

- Add locale prop (de/en) to PasswordStrength, ChangePassword,
  SecurityOnboarding, AuditLog, AuthGate tier screen
- Add 13 new i18n keys to LoginTranslations for 2FA, lockout, magic link
- Fix date formatting to use locale in AuditLog
- Rewrite ForgotPasswordPage to Tailwind (matching Login/Register)
- Fix HTML injection in ForgotPasswordPage (remove @html with email)
- Guard DEV credentials behind isDevMode check in LoginPage
- Extend AuthResult type with twoFactorRedirect and retryAfter
- Remove as any casts in LoginPage
- Replace scoped CSS with Tailwind in AuthGate tier-denied screen

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 13:41:53 +02:00
parent c3bee2607b
commit 3b54d4d48e
8 changed files with 517 additions and 363 deletions

View file

@ -61,6 +61,8 @@ export interface AuthResult {
success: boolean;
error?: string;
needsVerification?: boolean;
twoFactorRedirect?: boolean;
retryAfter?: number;
}
/**