github clerk/javascript @clerk/vue@1.5.0

latest releases: @clerk/types@4.92.0, @clerk/clerk-js@5.99.0, @clerk/fastify@2.4.37...
7 months ago

Minor Changes

  • Update useSession to handle pending sessions as signed-out by default, with opt-out via useSession({ treatPendingAsSignedOut: false }) or app.use(clerkPlugin, { treatPendingAsSignedOut: false }) (#5525) by @LauraBeatris

  • Update useAuth to handle pending sessions as signed-out by default, with opt-out via useAuth({ treatPendingAsSignedOut: false }) or app.use(clerkPlugin, { treatPendingAsSignedOut: false }) (#5507) by @LauraBeatris

Patch Changes

  • Introduce treatPendingAsSignedOut prop 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

Don't miss a new javascript release

NewReleases is sending notifications on new releases.