'use client' import { useSearchParams } from 'next/navigation' import { Suspense } from 'react' function DebugContent() { const searchParams = useSearchParams() // Get all parameters const allParams: Record = {} searchParams.forEach((value, key) => { allParams[key] = value }) return (

🔍 Auth Debug Page

Full URL

{typeof window !== 'undefined' ? window.location.href : 'Loading...'}

URL Parameters ({Object.keys(allParams).length})

{Object.keys(allParams).length > 0 ? (
{Object.entries(allParams).map(([key, value]) => (
{key} = {value}
))}
) : (
⚠️ No URL parameters found
)}

Expected Parameters for Password Reset

token_hash {allParams.token_hash ? '✅ Present' : '❌ Missing'}
type=recovery {allParams.type === 'recovery' ? '✅ Correct' : allParams.type ? `⚠️ Wrong: ${allParams.type}` : '❌ Missing'}
next=/update-password {allParams.next === '/update-password' ? '✅ Correct' : allParams.next ? `⚠️ Wrong: ${allParams.next}` : '❌ Missing'}

Quick Actions

) } export default function DebugPage() { return (
Loading debug info...
}>
) }