Back to Clerk

Sign-in Client Trust status handling

packages/upgrade/src/versions/core-3/changes/needs-client-trust-sign-in-status-added.md

latest1.3 KB
Original Source

We've added a new Sign-in status of needs_client_trust which, given the conditions listed, will need to be handled in your application.

Clerk Documentation: Client Trust

Prerequisites:

While your application may differ, we've provided an example change below. Please reach out to Support if you have any questions.

diff
const { signIn } = useSignIn()
// ...
- if (signIn.status === 'complete') { /* ... */ }
+ if (signIn.status === 'needs_client_trust') { /* ... */ }
+ else if (signIn.status === 'complete') {  /* ... */ }