Skip to content

Commit

Permalink
fix(elements): Remove example mode guard from passkey event in verifi…
Browse files Browse the repository at this point in the history
…cation flow (#4295)
  • Loading branch information
tmilewski authored Oct 8, 2024
1 parent 2ea1a60 commit bf78fe0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-adults-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/elements": patch
---

Remove "example mode" guard form "AUTHENICTATE.PASSKEY" event in verification flow
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type {
Web3Attempt,
} from '@clerk/types';
import type { DoneActorEvent } from 'xstate';
import { assign, fromPromise, log, not, sendTo, setup } from 'xstate';
import { assign, fromPromise, log, sendTo, setup } from 'xstate';

import {
MAGIC_LINK_VERIFY_PATH_ROUTE,
Expand Down Expand Up @@ -270,7 +270,6 @@ const SignInVerificationMachine = setup({
description: 'Waiting for user input',
on: {
'AUTHENTICATE.PASSKEY': {
guard: not('isExampleMode'),
target: 'AttemptingPasskey',
reenter: true,
},
Expand Down Expand Up @@ -411,7 +410,7 @@ export const SignInFirstFactorMachine = SignInVerificationMachine.provide({
// prepareFirstFactor, we need to assert that the input is a PrepareFirstFactor. For some reason, ESLint thinks
// the assertion is unnecessary, and will remove it during the pre-commit hook. To prevent that, we disable the
// rule for the line.
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion

const { params, parent, resendable } = input as PrepareFirstFactorInput;
const clerk = parent.getSnapshot().context.clerk;

Expand Down

0 comments on commit bf78fe0

Please sign in to comment.