-
Notifications
You must be signed in to change notification settings - Fork 390
feat(clerk-js): Trigger a new request to submit the captcha token #6076
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
base: main
Are you sure you want to change the base?
Changes from 5 commits
77fe28c
99f998b
eb56ecd
c87bab1
fe50d7d
c839759
90b4ba2
45ec3bd
4eafa6f
d045e31
56b9d53
0667427
3e0dbb4
701c920
26affdf
aa783a5
c7da4d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@clerk/clerk-js': patch | ||
'@clerk/types': patch | ||
--- | ||
|
||
Trigger a new request to submit the captcha token on sign up when executing the `signUp.create` method. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,8 +215,8 @@ function SignUpStartInternal(): JSX.Element { | |
|
||
// TODO: This is a hack to reset the sign in attempt so that the oauth error | ||
// does not persist on full page reloads. | ||
// We will revise this strategy as part of the Clerk DX epic. | ||
void (await signUp.create({})); | ||
// This will be handled by the backend (FAPI) in the future. | ||
void (await signUp.create({}, { skipChallenge: true })); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Remove redundant Inside an - void (await signUp.create({}, { skipChallenge: true }));
+ await signUp.create({}, { skipChallenge: true }); If the result should be ignored but failures tolerated, consider wrapping in 🤖 Prompt for AI Agents
|
||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should whether
challenge
is a missing field factor into this check?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good call actually! It will also help us in the future to get rid of the check if the captcha is enabled or not from the
displayConfig
. 🤔