import type { Metadata } from 'next' import LoginForm from './LoginForm' export const metadata: Metadata = { title: 'Sign In — Backerup', } interface Props { searchParams: Promise<{ from?: string }> } export default async function LoginPage({ searchParams }: Props) { const { from = '/browse' } = await searchParams // Only allow relative paths to prevent open redirects const safePath = from.startsWith('/') && !from.startsWith('//') ? from : '/browse' return (
{/* Logo + heading */}

Welcome back

Sign in to your Backerup account

{/* Card */}

Access is managed by your administrator.

) }