Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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