Skip to content

Commit

Permalink
fix(clerk-js): Enable captcha for development instances (#4620)
Browse files Browse the repository at this point in the history
  • Loading branch information
issuedat authored Nov 22, 2024
1 parent 727c218 commit 0c47728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-games-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Enable captcha for development instances
6 changes: 1 addition & 5 deletions packages/clerk-js/src/utils/captcha/retrieveCaptchaInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ export const retrieveCaptchaInfo = (clerk: Clerk) => {
captchaWidgetType: _environment ? _environment.displayConfig.captchaWidgetType : null,
captchaProvider,
captchaPublicKeyInvisible: _environment ? _environment.displayConfig.captchaPublicKeyInvisible : null,
canUseCaptcha: _environment
? _environment.userSettings.signUp.captcha_enabled &&
clerk.isStandardBrowser &&
clerk.instanceType === 'production'
: null,
canUseCaptcha: _environment ? _environment.userSettings.signUp.captcha_enabled && clerk.isStandardBrowser : null,
captchaURL: fapiClient
.buildUrl({
path: 'cloudflare/turnstile/v0/api.js',
Expand Down

0 comments on commit 0c47728

Please sign in to comment.