mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
19 lines
454 B
TypeScript
19 lines
454 B
TypeScript
import { createEventBus } from 'n8n-design-system/utils';
|
|
|
|
export const mfaEventBus = createEventBus();
|
|
|
|
export interface MfaModalClosedEventPayload {
|
|
mfaCode: string;
|
|
}
|
|
|
|
export interface MfaModalEvents {
|
|
close: MfaModalClosedEventPayload | undefined;
|
|
|
|
closed: MfaModalClosedEventPayload | undefined;
|
|
}
|
|
|
|
/**
|
|
* Event bus for transmitting the MFA code from a modal back to the view
|
|
*/
|
|
export const promptMfaCodeBus = createEventBus<MfaModalEvents>();
|