import { ForgotPasswordClient } from './client' import { auth } from '@/auth' import { redirect } from 'next/navigation' import { passwordAuthEnabled } from '@/lib/oidc-config' export const dynamic = 'force-dynamic' export default async function ForgotPasswordPage() { // SSO-only deployments have no local passwords; Authelia owns recovery. if (!passwordAuthEnabled()) redirect('/login') const session = await auth() if (session?.user) redirect('/pages') return }