Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/three-olives-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Add support for the signup_rate_limit_exceeded error on OAuth flows
2 changes: 1 addition & 1 deletion packages/clerk-js/bundlewatch.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": [
{ "path": "./dist/clerk.js", "maxSize": "598kB" },
{ "path": "./dist/clerk.js", "maxSize": "599kB" },
{ "path": "./dist/clerk.browser.js", "maxSize": "69KB" },
{ "path": "./dist/clerk.legacy.browser.js", "maxSize": "113KB" },
{ "path": "./dist/clerk.headless*.js", "maxSize": "52KB" },
Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/src/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const ERROR_CODES = {
CAPTCHA_INVALID: 'captcha_invalid',
FRAUD_DEVICE_BLOCKED: 'device_blocked',
FRAUD_ACTION_BLOCKED: 'action_blocked',
SIGNUP_RATE_LIMIT_EXCEEDED: 'signup_rate_limit_exceeded',
} as const;

export const SIGN_IN_INITIAL_VALUE_KEYS = ['email_address', 'phone_number', 'username'];
Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/src/ui/components/SignIn/SignInStart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ function SignInStartInternal(): JSX.Element {
case ERROR_CODES.CAPTCHA_INVALID:
case ERROR_CODES.FRAUD_DEVICE_BLOCKED:
case ERROR_CODES.FRAUD_ACTION_BLOCKED:
case ERROR_CODES.SIGNUP_RATE_LIMIT_EXCEEDED:
card.setError(error);
break;
default:
Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ function SignUpStartInternal(): JSX.Element {
case ERROR_CODES.CAPTCHA_INVALID:
case ERROR_CODES.FRAUD_DEVICE_BLOCKED:
case ERROR_CODES.FRAUD_ACTION_BLOCKED:
case ERROR_CODES.SIGNUP_RATE_LIMIT_EXCEEDED:
card.setError(error);
break;
default:
Expand Down