Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(elements,ui): Determine SafeIdentifier based on strategy #3749

Merged
merged 5 commits into from
Jul 22, 2024

Conversation

dstaley
Copy link
Member

@dstaley dstaley commented Jul 17, 2024

Description

This PR updates the SignIn.SafeIdentifier component to intelligently select the safeIdentifier that corresponds to the SignInStrategy that it's wrapped in via SignIn.Strategy or SignIn.SupportedStrategy. It also adds a new transform prop allowing callers to transform the returned string via formatters such as localizers.

Before After
Screen Shot 2024-07-17 at 12 30 30 PM Screen Shot 2024-07-17 at 12 31 34 PM

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:

Copy link

changeset-bot bot commented Jul 17, 2024

🦋 Changeset detected

Latest commit: a38068e

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 Patch

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

Copy link
Member

@tmilewski tmilewski left a comment

Choose a reason for hiding this comment

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

💯

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.

Excellent!

@LekoArts LekoArts merged commit 603e992 into main Jul 22, 2024
16 checks passed
@LekoArts LekoArts deleted the ds.feat/safeidentifier-for-strategy branch July 22, 2024 09:58
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.

5 participants