Skip to content

Commit a82a91a

Browse files
refactor(ui): render security dialogs from panel view
1 parent d562c4b commit a82a91a

6 files changed

Lines changed: 858 additions & 508 deletions

File tree

packages/swingset/src/stories/user-profile-security-panel-flow.reverification.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import type { ReverificationChallengeState } from '@clerk/ui/mosaic/user-profile/dialogs/flow.types';
1+
import type {
2+
ReverificationChallengeState,
3+
UserProfileSecurityReverificationOperation,
4+
} from '@clerk/ui/mosaic/user-profile/dialogs/flow.types';
25
import { useCallback, useRef, useState } from 'react';
36

47
import type { SecurityFlowConfig } from './user-profile-security-panel-flow.config';
@@ -8,16 +11,7 @@ type ReverificationFlowConfig = Pick<
811
'failurePoint' | 'latencyMs' | 'requireReverification' | 'reverificationStrategy' | 'validCode' | 'validPassword'
912
>;
1013

11-
export type SecurityReverificationOperation =
12-
| 'password'
13-
| 'add-passkey'
14-
| 'remove-passkey'
15-
| 'add-mfa'
16-
| 'remove-mfa'
17-
| 'backup-codes'
18-
| 'sign-out-device'
19-
| 'sign-out-all-devices'
20-
| 'delete-account';
14+
export type SecurityReverificationOperation = UserProfileSecurityReverificationOperation;
2115

2216
interface SecurityReverificationState {
2317
operation: SecurityReverificationOperation;

0 commit comments

Comments
 (0)