Skip to content

Commit 3f4caf4

Browse files
testing
1 parent 56a6789 commit 3f4caf4

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

src/content/docs/turnstile/get-started/client-side-rendering/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,12 @@ For a complete list of configuration options, refer to [Widget configurations](/
409409

410410
---
411411

412+
## Testing
413+
414+
<Render file="test-sitekey" />
415+
416+
---
417+
412418
## Security requirements
413419

414420
<Render file="security-requirements" />

src/content/docs/turnstile/get-started/index.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,22 @@ Add the Turnstile widget to your webpage forms and applications.
6262

6363
Refer to [Embed the widget](/turnstile/get-started/client-side-rendering/) to learn more about implicit and explicit rendering methods.
6464

65+
:::note[Testing]
66+
<Render file="test-sitekey" />
67+
:::
68+
6569
### 3. Validate tokens
6670

6771
Implement server-side validation to verify the tokens generated by your widgets.
6872

6973
Refer to [Validate the token](/turnstile/get-started/server-side-validation/) to secure your implementation with proper token verification.
7074

75+
76+
:::note[Testing]
77+
<Render file="test-secret-key" />
78+
:::
79+
80+
7181
## Additional implementation options
7282

7383
### Mobile configuration

src/content/docs/turnstile/get-started/server-side-validation.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,12 @@ if (result.success) {
643643

644644
---
645645

646+
## Testing
647+
648+
<Render file="test-secret-key" />
649+
650+
---
651+
646652
## Best practices
647653

648654
### Security
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
{}
3+
4+
---
5+
6+
You can test the dummy token generated with testing sitekey via Siteverify API with the testing secret key. Your production secret keys will reject dummy tokens.
7+
8+
Refer to [Testing](/turnstile/troubleshooting/testing/) for more information.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
{}
3+
4+
---
5+
6+
You can test your Turnstile widget on your webpage without triggering an actual Cloudflare Challenge by using a testing sitekey.
7+
8+
Refer to [Testing](/turnstile/troubleshooting/testing/) for more information.

0 commit comments

Comments
 (0)