@clerk/react@6.12.0
📦 clerkView on GitHub →
✨ 3 features🔧 6 symbols
Summary
This release introduces support for Clerk Protect mid-flow SDK challenges during sign-up and sign-in flows, enhancing antifraud capabilities. The update includes type-only changes for sign-in status handling.
Migration Steps
- If using an exhaustive switch on `signIn.status`, handle the new 'needs_protect_check' value by running the challenge described by the `protectCheck` field and submitting the proof via `submitProtectCheck()`.
✨ New Features
- Added support for Clerk Protect mid-flow SDK challenges (`protect_check`) on both sign-up and sign-in flows.
- Sign-in now includes a new 'needs_protect_check' value in the `SignInStatus` union when a Protect mid-flow challenge is issued.
- The pre-built `<SignIn />` and `<SignUp />` components automatically handle Protect challenges by routing to a new `protect-check` route.