Skip to content

Commit

Permalink
Update docs/guides/reverification.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: victoria <[email protected]>
  • Loading branch information
alexisintech and victoriaxyz authored Nov 26, 2024
1 parent edd0c56 commit 339caf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/reverification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
}),
Expand Down

0 comments on commit 339caf5

Please sign in to comment.