Change8

@clerk/shared@4.25.0

📦 clerkView on GitHub →
3 features🐛 1 fixes🔧 7 symbols

Summary

This release introduces support for Clerk Protect mid-flow SDK challenges during sign-up and sign-in flows, enhancing antifraud capabilities. It also includes minor polish fixes for the Protect check UI.

Migration Steps

  1. If you use an exhaustive `switch` on `signIn.status` after upgrading, handle the new `'needs_protect_check'` value by running the challenge described by `protectCheck` and submitting the proof via `submitProtectCheck()`.

✨ New Features

  • Add support for Clerk Protect mid-flow SDK challenges (`protect_check`) on both sign-up and sign-in.
  • When a Protect challenge is issued, responses now carry a `protectCheck` field with `{ status, token, sdkUrl, expiresAt?, uiHints? }`.
  • The pre-built `<SignIn />` and `<SignUp />` components automatically handle the Protect check gate by routing to a new `protect-check` route.

🐛 Bug Fixes

  • The loading spinner in the Protect check card now hides when a challenge widget is visible, appears only after a short delay, and the card no longer reserves empty space above the spinner before a widget renders.

Affected Symbols