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

fix(clerk-js): Define priority for strategy passkey when user is missing that first factor #3013

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

panteliselef
Copy link
Member

@panteliselef panteliselef commented Mar 19, 2024

Description

Previously a readable UI error would appear to users.

Now we treat them a "passwordless" attempt to sign in so we display the otp factors first.

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:

@panteliselef panteliselef self-assigned this Mar 19, 2024
Copy link

changeset-bot bot commented Mar 19, 2024

🦋 Changeset detected

Latest commit: cf61ecc

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo 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

identifier: string | null,
): SignInFactor | null {
if (isWebAuthnSupported()) {
// @ts-ignore
Copy link
Member Author

@panteliselef panteliselef Mar 19, 2024

Choose a reason for hiding this comment

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

This is expected, types have not been added yet, to avoid making them public.

@panteliselef panteliselef enabled auto-merge (squash) March 20, 2024 09:14
@panteliselef panteliselef force-pushed the elef/sdk-1532-handle-users-without-passkeys branch from 97ea5bf to cf61ecc Compare March 20, 2024 09:14
@panteliselef panteliselef merged commit d9bd2b4 into main Mar 20, 2024
9 checks passed
@panteliselef panteliselef deleted the elef/sdk-1532-handle-users-without-passkeys branch March 20, 2024 09:24
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.

3 participants