import type { Metadata } from "next"; import { redirect } from "next/navigation"; import { Container, SectionHeading, Button, FormPanel } from "@/components/ui"; import { BackLink } from "@/components/back-link"; import { TurnstileField } from "@/components/turnstile-widget"; import { getTwoFactorChallengeCustomerId } from "@/lib/auth"; import { verifyTwoFactorAction } from "../actions"; import { getLocale } from "@/i18n/locale"; import { getDictionary } from "@/i18n/get-dictionary"; export const metadata: Metadata = { title: "Anmeldung bestätigen" }; export const dynamic = "force-dynamic"; export default async function ZweiFaktorCodePage() { const t = getDictionary(await getLocale()); const customerId = await getTwoFactorChallengeCustomerId(); if (!customerId) redirect("/konto"); return (