// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later import type { Metadata } from "next"; import { CredentialsShell } from "@/components/credentials/CredentialsShell"; import { SignInForm } from "@/components/credentials/SignInForm"; import { localReturnUrl } from "@/lib/credentials"; import { getCredentialsMessages } from "@/lib/credentials-messages"; import { getLocale } from "@/lib/locale.server"; export async function generateMetadata(): Promise { return { title: getCredentialsMessages(await getLocale()).metadata.signIn }; } interface SignInPageProps { // The cookie handler of the API names the parameter ReturnUrl. searchParams: Promise<{ ReturnUrl?: string; returnUrl?: string }>; } export default async function CredentialsSignInPage({ searchParams, }: SignInPageProps) { const { ReturnUrl, returnUrl } = await searchParams; const locale = await getLocale(); const { signIn } = getCredentialsMessages(locale); return ( ); }