Skip to content

Commit 9c1e7f6

Browse files
committed
mention debug option for verify
1 parent c958d42 commit 9c1e7f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,14 @@ import { verifyTurnstile } from 'qwik-turnstile';
6060

6161
export const useFormAction = routeAction$(async (values, requestEvent) => {
6262

63+
6364
const token = values.turnstileToken;
6465
const secret = requestEvent.env.get("TURNSTILE_SECRET");
6566

6667
const verified = await verifyTurnstile(token, secret);
68+
69+
// you can also call `verifyTurnstile(token, secret, {debug: true})`
70+
// if `debug` is set to `true` it will log the response from turnstile to the console
6771

6872
if (!verified) {
6973
console.error("Turnstile Verification Error");

0 commit comments

Comments
 (0)