Docs
Guides and reference for recaptcha-next.
Start
Guides
Guides
Server Actions
The token travels in the form data, so a Server Action can verify it without any extra request from the browser.
Read
Guides
Lazy loading
Google's script is heavy, and a form far down the page may never be reached. With lazy, the script waits until the form is near the viewport.
Read
Guides
Navigation and the badge
Next.js moves between pages without reloading, so a form can mount and unmount many times in one visit. This page explains what the package does about Google's script when that happens.
Read
Guides
Custom FormData
If you build FormData by hand, or send a fetch request, the hidden input is not included, because it only travels when the browser submits the .
Read
Guides
Testing
Your own tests should not call Google. The server side is built from small parts that you can replace.
Read