diff --git a/.changeset/early-games-taste.md b/.changeset/early-games-taste.md new file mode 100644 index 0000000000..6130b6a886 --- /dev/null +++ b/.changeset/early-games-taste.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': patch +--- + +Enable captcha for development instances diff --git a/packages/clerk-js/src/utils/captcha/retrieveCaptchaInfo.ts b/packages/clerk-js/src/utils/captcha/retrieveCaptchaInfo.ts index 2cf78c84db..caa36e5fff 100644 --- a/packages/clerk-js/src/utils/captcha/retrieveCaptchaInfo.ts +++ b/packages/clerk-js/src/utils/captcha/retrieveCaptchaInfo.ts @@ -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',