diff --git a/docs/guides/reverification.mdx b/docs/guides/reverification.mdx index cd7c01f93e..c7702b03ed 100644 --- a/docs/guides/reverification.mdx +++ b/docs/guides/reverification.mdx @@ -159,8 +159,8 @@ The following example demonstrates how to use the [`useReverification()`](/docs/ import { useReverification } from '@clerk/nextjs' export default function Page({ amount_in_cents }: { amount_in_cents: number }) { - const [transferMoney] = useReverification(() => - fetch('/api/reverification-example', { + const [transferMoney] = useReverification(async () => + await fetch('/api/reverification-example', { method: 'POST', body: JSON.stringify({ amount_in_cents }), }),