Skip to content

feat(shared,ui): Add handling for user_deactivated error code#7810

Merged
NicolasLopes7 merged 3 commits intomainfrom
nicolas/add-deactivated-error-handling
Feb 10, 2026
Merged

feat(shared,ui): Add handling for user_deactivated error code#7810
NicolasLopes7 merged 3 commits intomainfrom
nicolas/add-deactivated-error-handling

Conversation

@NicolasLopes7
Copy link
Copy Markdown
Contributor

@NicolasLopes7 NicolasLopes7 commented Feb 10, 2026

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.

Description

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • New Features

    • Sign In and Sign Up flows now display a clear message when an account is deactivated.
  • Chores

    • Prepared patch version updates for related packages to ship the fix.

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.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 10, 2026

🦋 Changeset detected

Latest commit: 6a54cd9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 20 packages
Name Type
@clerk/shared Patch
@clerk/ui Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/chrome-extension Patch
@clerk/clerk-js Patch
@clerk/expo-passkeys Patch
@clerk/expo Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/localizations Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/react Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Feb 10, 2026 4:44pm

Request Review

@NicolasLopes7 NicolasLopes7 changed the title feat(ui): Add handling for user_deactivated error code feat(shared,ui): Add handling for user_deactivated error code Feb 10, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 10, 2026

📝 Walkthrough

Walkthrough

Adds a changeset file and introduces handling for a new user_deactivated error code. The change adds USER_DEACTIVATED: 'user_deactivated' to the shared ERROR_CODES constant and updates SignIn and SignUp OAuth error handling to treat user_deactivated like other failure cases by calling card.setError(error) to surface the error.

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: adding handling for the user_deactivated error code across shared and ui packages.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


No actionable comments were generated in the recent review. 🎉


Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 10, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7810

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@7810

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@7810

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@7810

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@7810

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7810

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@7810

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@7810

@clerk/express

npm i https://pkg.pr.new/@clerk/express@7810

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@7810

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@7810

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@7810

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@7810

@clerk/react

npm i https://pkg.pr.new/@clerk/react@7810

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@7810

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@7810

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@7810

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@7810

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@7810

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@7810

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@7810

commit: 569d511

Comment thread .changeset/nice-worlds-brake.md Outdated
Co-authored-by: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com>
@NicolasLopes7 NicolasLopes7 merged commit 972f6a0 into main Feb 10, 2026
41 checks passed
@NicolasLopes7 NicolasLopes7 deleted the nicolas/add-deactivated-error-handling branch February 10, 2026 16:58
nikosdouvlis pushed a commit that referenced this pull request Feb 12, 2026
Co-authored-by: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants