We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
debug
1 parent c958d42 commit 9c1e7f6Copy full SHA for 9c1e7f6
README.md
@@ -60,10 +60,14 @@ import { verifyTurnstile } from 'qwik-turnstile';
60
61
export const useFormAction = routeAction$(async (values, requestEvent) => {
62
63
+
64
const token = values.turnstileToken;
65
const secret = requestEvent.env.get("TURNSTILE_SECRET");
66
67
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
71
72
if (!verified) {
73
console.error("Turnstile Verification Error");
0 commit comments