Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@clerk/clerk-expo]: Missing CAPTCHA token: Expo SDK 51.0.38 #4669

Open
4 tasks done
ChrisMungiria opened this issue Nov 29, 2024 · 7 comments
Open
4 tasks done

[@clerk/clerk-expo]: Missing CAPTCHA token: Expo SDK 51.0.38 #4669

ChrisMungiria opened this issue Nov 29, 2024 · 7 comments
Labels
needs-triage A ticket that needs to be triaged by a team member

Comments

@ChrisMungiria
Copy link

Preliminary Checks

Reproduction

https://github.com/clerk/clerk-expo-quickstart

Publishable key

pk_test_bm9ybWFsLWxvY3VzdC00NC5jbGVyay5hY2NvdW50cy5kZXYk

Description

Steps to reproduce:

  1. Create an Expo project
  2. Use any of the Clerk Auth hooks

Expected behavior:

Should create a user on the Clerk dashboard

Actual behavior:

An error from clerk that says there's a missing CAPTCHA token

Environment

System:
  MacOS: 15.1.1 (24B91)
  Chip: M1
@ChrisMungiria ChrisMungiria added the needs-triage A ticket that needs to be triaged by a team member label Nov 29, 2024
@MArtytraM99
Copy link

+1

@arifali123
Copy link

Getting this also for sign in with google

@chony13v
Copy link

chony13v commented Dec 2, 2024

+3

@MArtytraM99
Copy link

MArtytraM99 commented Dec 2, 2024

I got the following reply from support on a similar problem and it resolved the issue. It might help you too. Just go to clerk dashboard and disable Bot sign-up protection.

Hi Martin,

Based on the error you're encountering with Expo and Clerk authentication, this is a known issue with CAPTCHA in non-browser environments like Expo/React Native. The "Missing CAPTCHA token" error occurs because Clerk's bot protection feature is not supported in mobile environments. To resolve this, you'll need to disable bot protection in your Clerk Dashboard. Go to User & Authentication > Attack Protection and turn off the Bot sign-up protection. This should resolve the CAPTCHA token error and allow authentication to work properly in your Expo application.

@ChrisMungiria
Copy link
Author

I got the following reply from support on a similar problem and it resolved the issue. It might help you too. Just go to clerk dashboard and disable Bot sign-up protection.

Hi Martin,
Based on the error you're encountering with Expo and Clerk authentication, this is a known issue with CAPTCHA in non-browser environments like Expo/React Native. The "Missing CAPTCHA token" error occurs because Clerk's bot protection feature is not supported in mobile environments. To resolve this, you'll need to disable bot protection in your Clerk Dashboard. Go to User & Authentication > Attack Protection and turn off the Bot sign-up protection. This should resolve the CAPTCHA token error and allow authentication to work properly in your Expo application.

Yes, this answer works for all auth. Although I'm not sure this is an optimal fix

@Jeet-Pattani
Copy link

Turning off the option works perfectly. But we can maybe continue with the bot protection by adding the following component in the UI

<div id="clerk-captcha" />

Reference: https://clerk.com/docs/custom-flows/bot-sign-up-protection

@ChrisMungiria
Copy link
Author

ChrisMungiria commented Dec 3, 2024

Turning off the option works perfectly. But we can maybe continue with the bot protection by adding the following component in the UI

<div id="clerk-captcha" />

Reference: https://clerk.com/docs/custom-flows/bot-sign-up-protection

How about for mobile? Since I experienced this in mobile
EDIT: I am using Expo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage A ticket that needs to be triaged by a team member
Projects
None yet
Development

No branches or pull requests

5 participants