From 1510044e814558b503d73f36467c84f68737d861 Mon Sep 17 00:00:00 2001 From: Nicolas Lopes Date: Tue, 10 Feb 2026 12:31:46 -0300 Subject: [PATCH 1/3] feat(ui): Add handling for user_deactivated error code Adds USER_DEACTIVATED error code constant and includes it in error handling for SignIn and SignUp flows to properly display deactivated account errors to users. --- packages/shared/src/internal/clerk-js/constants.ts | 1 + packages/ui/src/components/SignIn/SignInStart.tsx | 1 + packages/ui/src/components/SignUp/SignUpStart.tsx | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/shared/src/internal/clerk-js/constants.ts b/packages/shared/src/internal/clerk-js/constants.ts index fae8b43b265..f81693798e1 100644 --- a/packages/shared/src/internal/clerk-js/constants.ts +++ b/packages/shared/src/internal/clerk-js/constants.ts @@ -47,6 +47,7 @@ export const ERROR_CODES = { FRAUD_ACTION_BLOCKED: 'action_blocked', SIGNUP_RATE_LIMIT_EXCEEDED: 'signup_rate_limit_exceeded', USER_BANNED: 'user_banned', + USER_DEACTIVATED: 'user_deactivated', } as const; export const SIGN_IN_INITIAL_VALUE_KEYS = ['email_address', 'phone_number', 'username']; diff --git a/packages/ui/src/components/SignIn/SignInStart.tsx b/packages/ui/src/components/SignIn/SignInStart.tsx index 65e0f814709..73cb247af7e 100644 --- a/packages/ui/src/components/SignIn/SignInStart.tsx +++ b/packages/ui/src/components/SignIn/SignInStart.tsx @@ -297,6 +297,7 @@ function SignInStartInternal(): JSX.Element { case ERROR_CODES.FRAUD_ACTION_BLOCKED: case ERROR_CODES.SIGNUP_RATE_LIMIT_EXCEEDED: case ERROR_CODES.USER_BANNED: + case ERROR_CODES.USER_DEACTIVATED: card.setError(error); break; default: diff --git a/packages/ui/src/components/SignUp/SignUpStart.tsx b/packages/ui/src/components/SignUp/SignUpStart.tsx index 10c58936e0d..90059b9a2f5 100644 --- a/packages/ui/src/components/SignUp/SignUpStart.tsx +++ b/packages/ui/src/components/SignUp/SignUpStart.tsx @@ -224,6 +224,7 @@ function SignUpStartInternal(): JSX.Element { case ERROR_CODES.FRAUD_ACTION_BLOCKED: case ERROR_CODES.SIGNUP_RATE_LIMIT_EXCEEDED: case ERROR_CODES.USER_BANNED: + case ERROR_CODES.USER_DEACTIVATED: card.setError(error); break; default: From 6a54cd9c5723a62a8e681ee96224c19a6d9b416e Mon Sep 17 00:00:00 2001 From: Nicolas Lopes Date: Tue, 10 Feb 2026 12:33:18 -0300 Subject: [PATCH 2/3] changeset --- .changeset/nice-worlds-brake.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/nice-worlds-brake.md diff --git a/.changeset/nice-worlds-brake.md b/.changeset/nice-worlds-brake.md new file mode 100644 index 00000000000..cbe48d1d8c7 --- /dev/null +++ b/.changeset/nice-worlds-brake.md @@ -0,0 +1,6 @@ +--- +'@clerk/shared': patch +'@clerk/ui': patch +--- + +Support user_deactivated error code on SignIn and SignUp Start components From 569d5118ce29b099e8e4756e30b91d488539ba6f Mon Sep 17 00:00:00 2001 From: nicolas lopes <57234795+NicolasLopes7@users.noreply.github.com> Date: Tue, 10 Feb 2026 13:43:33 -0300 Subject: [PATCH 3/3] Update .changeset/nice-worlds-brake.md Co-authored-by: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com> --- .changeset/nice-worlds-brake.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/nice-worlds-brake.md b/.changeset/nice-worlds-brake.md index cbe48d1d8c7..897c6c9ea16 100644 --- a/.changeset/nice-worlds-brake.md +++ b/.changeset/nice-worlds-brake.md @@ -3,4 +3,4 @@ '@clerk/ui': patch --- -Support user_deactivated error code on SignIn and SignUp Start components +Display message for `user_deactivated` error code on `SignIn` and `SignUp`