clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
1.09k stars 240 forks source link

feat(elements): Add `backup_code` verification strategy #3627

Closed tmilewski closed 3 months ago

tmilewski commented 3 months ago

Description

Adds backup_code verification strategy

<SignIn.Step name='choose-strategy'>
  <SignIn.SupportedStrategy name='backup_code'>Use a backup code</SignIn.SupportedStrategy>
<SignIn.Step>
<SignIn.Step name='verifications'>
  <SignIn.Strategy name='backup_code'>
    <Clerk.Field name="backup_code">
      <Clerk.Label>Code:</Clerk.Label>
      <Clerk.Input />
      <Clerk.FieldError />
    </Clerk.Field>

    <Clerk.Action submit>Continue</Clerk.Action>
  </SignIn.Strategy>
<SignIn.Step>

Fixes SDK-1852

Checklist

Type of change

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 69b3384b6a012c55be80de869e45f3b54fccdbb2

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

This PR includes changesets to release 2 packages | Name | Type | | --------------- | ----- | | @clerk/elements | Minor | | @clerk/ui | 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

tmilewski commented 3 months ago

!snapshot

clerk-cookie commented 3 months ago
Hey @tmilewski - the snapshot version command generated the following package versions: Package Version
@clerk/chrome-extension 1.1.1-snapshot.v64cb67f
@clerk/clerk-js 5.7.3-snapshot.v64cb67f
@clerk/elements 0.10.0-snapshot.v64cb67f
@clerk/clerk-expo 1.2.4-snapshot.v64cb67f
gatsby-plugin-clerk 5.0.0-beta.45
@clerk/ui 0.1.5-snapshot.v64cb67f

Tip: Use the snippet copy button below to quickly install the required packages. @clerk/chrome-extension

npm i @clerk/chrome-extension@1.1.1-snapshot.v64cb67f --save-exact

@clerk/clerk-js

npm i @clerk/clerk-js@5.7.3-snapshot.v64cb67f --save-exact

@clerk/elements

npm i @clerk/elements@0.10.0-snapshot.v64cb67f --save-exact

@clerk/clerk-expo

npm i @clerk/clerk-expo@1.2.4-snapshot.v64cb67f --save-exact

gatsby-plugin-clerk

npm i gatsby-plugin-clerk@5.0.0-beta.45 --save-exact

@clerk/ui

npm i @clerk/ui@0.1.5-snapshot.v64cb67f --save-exact