Skip to content

Commit

Permalink
chore: Testing tokens are now enabled in production instances as well (
Browse files Browse the repository at this point in the history
…#1678)

Co-authored-by: victoria <[email protected]>
  • Loading branch information
alex-ntousias and victoriaxyz authored Nov 12, 2024
1 parent ac5ebc9 commit c914d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: '`createTestingToken()`'
description: Use Clerk's Backend SDK to create a testing token for the instance.
---

Creates a Testing Token for the instance. **It only works on development instances.**
Creates a Testing Token for the instance.

```ts
function createTestingToken(): Promise<TestingToken>
Expand Down
2 changes: 1 addition & 1 deletion docs/testing/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Testing Tokens allow you to bypass bot detection mechanisms that protect Clerk a
> [!NOTE]
> While you can manually implement the following logic in your test suite, Clerk provides [Playwright](/docs/testing/playwright/overview) and [Cypress](/docs/testing/cypress) integrations that handle this automatically.
Obtained via the [Backend API](/docs/reference/backend-api/tag/Testing-Tokens){{ target: '_blank' }}, Testing Tokens are short-lived and valid only for the specific instance for which they are issued. Testing Tokens are only available in development instances.
Obtained via the [Backend API](/docs/reference/backend-api/tag/Testing-Tokens){{ target: '_blank' }}, Testing Tokens are short-lived and valid only for the specific instance for which they are issued.

Once retrieved, include the token value in the `__clerk_testing_token` query parameter in your Frontend API requests. For example, a sign-up request using a Testing Token would look like this:

Expand Down

0 comments on commit c914d41

Please sign in to comment.