import type { Metadata } from "next" import Link from "next/link" import { Logo } from "@/components/shared/logo" import { TurnstileWidget } from "@/components/shared/turnstile-widget" import { updatePassword } from "@/app/actions/auth" // A password-reset form reached from a one-time emailed link — nothing here // should ever enter the index. export const metadata: Metadata = { title: "Set a new password", robots: { index: false, follow: false }, } export default async function UpdatePasswordPage({ searchParams, }: { searchParams: Promise<{ error?: string; token?: string }> }) { const params = await searchParams const error = params.error const token = params.token ?? "" return (
Choose a strong password
Back to sign in