vfi-2fa
Version:
- Headless (100% customizable, Bring-your-own-UI) - Auto out of the box, fully controllable API - Sorting (Multi and Stable) - Filters - Row Selection - Row Expansion - Column Ordering - Animatable - Resizable - Server-side/controlled data/state
32 lines (31 loc) • 742 B
TypeScript
export interface IValidationResult<T> {
data?: T;
isValid?: boolean;
errors?: any[];
ruleSetsExecuted?: any;
}
export interface IRequired2FAModel {
required2FA?: boolean;
user2FAConfigDto?: IUser2FAConfigDto;
type?: "TOTP" | "SMS_OTP" | "EMAIL_OTP" | null | undefined;
message?: string;
}
export interface IUser2FAConfigDto {
configs?: TwoFAConfig[];
enableTOTP?: boolean;
enableEmail?: boolean;
enableSms?: boolean;
enableLogin?: boolean;
email?: string;
phone?: string;
}
export interface TwoFAConfig {
id?: string;
type?: string;
}
export interface OtpVerifyDto {
secretData?: string;
}
export interface SendOTPRequest {
type: "TOTP" | "SMS_OTP" | "EMAIL_OTP";
}