import { ResetPasswordClient } from './client' import { auth } from '@/auth' import { redirect } from 'next/navigation' import { passwordAuthEnabled } from '@/lib/oidc-config' import { Suspense } from 'react' export const dynamic = 'force-dynamic' export default async function ResetPasswordPage() { // SSO-only deployments have no local passwords; Authelia owns recovery. if (!passwordAuthEnabled()) redirect('/login') const session = await auth() if (session?.user) redirect('/pages') // useSearchParams in the client needs a Suspense boundary for prerender. return ( ) }