Skip to content

Conversation

@tmilewski
Copy link
Member

@tmilewski tmilewski commented Aug 14, 2024

Description

Introduce multi-session choose account step and associated actions/components.

Example:

<SignIn.Step name='choose-session'>
  <SignIn.SessionList>
    <SignIn.SessionListItem>
      {({ session }) => <>{session.identifier} | <SignIn.Action setActiveSession>Switch...</SignIn.Action></>}
    </SignIn.SessionListItem>
  </SignIn.SessionList>
</SignIn.Step>

By default, SessionList does not include the current session. Adding includeCurrentSession to SignIn.SessionList will include it.

Fixes SDKI-290

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Aug 14, 2024

🦋 Changeset detected

Latest commit: fc7bd76

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/elements Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tmilewski tmilewski force-pushed the tm/elements-choose-session branch from c6ae807 to f7b7bc9 Compare August 15, 2024 16:49
@tmilewski tmilewski force-pushed the tm/elements-choose-session branch from 3ce9121 to 608d43d Compare August 16, 2024 15:13
@tmilewski tmilewski self-assigned this Aug 16, 2024
@tmilewski tmilewski marked this pull request as ready for review August 16, 2024 15:16
Copy link
Member

@alexcarpenter alexcarpenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works beautifully 👏🏼 #3973

@tmilewski tmilewski merged commit 2f37bd2 into main Aug 16, 2024
@tmilewski tmilewski deleted the tm/elements-choose-session branch August 16, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants