Minor Changes
-
Update
useSessionto handle pending sessions as signed-out by default, with opt-out viauseSession({ treatPendingAsSignedOut: false })orapp.use(clerkPlugin, { treatPendingAsSignedOut: false })(#5525) by @LauraBeatris -
Update
useAuthto handle pending sessions as signed-out by default, with opt-out viauseAuth({ treatPendingAsSignedOut: false })orapp.use(clerkPlugin, { treatPendingAsSignedOut: false })(#5507) by @LauraBeatris
Patch Changes
-
Introduce
treatPendingAsSignedOutprop to client control components (#5512) by @LauraBeatris// Children node only mounts when session is active // Example: Organization selection must be completed if enforced <SignedIn> <p>You have selected an organization!</p> </SignedIn>
// Children node mounts for both active and pending session <SignedIn treatPendingAsSignedOut={false}> <p>You might not have an organization selected</p> </SignedIn>
// Children node only mounts when session is active // Example: Organization selection must be completed if enforced <Protect> <p>You have selected an organization!</p> </Protect>
// Children node mounts for both active and pending session <Protect treatPendingAsSignedOut={false}> <p>You might not have an organization selected</p> </Protect>
-
Updated dependencies [
e1ec52b,bebb6d8,d0d5203,6112420,9b25e31]:- @clerk/types@4.51.0
- @clerk/shared@3.4.0