You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| sitekey | string | sitekey of your website (REQUIRED) |
35
+
| action | string | - |
36
+
| cData | string | - |
37
+
| theme | string | one of "light", "dark", "auto" |
38
+
| tabIndex | number | - |
39
+
| responseField | boolean | controls generation of `<input />` element \*|
40
+
| responseFieldName | string | changes the name of `<input />` element \*|
41
+
| id | string | id of the div |
42
+
| className | string | passed to the div |
43
+
| style | object | passed to the div |
40
44
41
45
And the following callbacks:
42
46
@@ -45,6 +49,11 @@ And the following callbacks:
45
49
| onVerify | token | called when challenge is passed (REQUIRED) |
46
50
| onLoad | - | called when the widget is loaded |
47
51
| onError | error | called when an error occurs |
48
-
| onExpire | - | called when the challenge expires |
52
+
| onExpire | - | called when the challenge expires \*\*|
53
+
54
+
55
+
\* responseField and responseFieldName are experimental and not yet documented.
56
+
57
+
\*\*`onExpire` is called when the Turnstile challenge expires without creating a token.
49
58
50
59
For more details on what each argument does, see the [Cloudflare Documentation](https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#configurations).
0 commit comments