References
TOTP Types
Type Aliases
ComponentOverrideMap
type ComponentOverrideMap = object;
Defined in: recipe/totp/types.ts:35
Properties
Config
type Config = UserInput & RecipeModuleConfig<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;
Defined in: recipe/totp/types.ts:142
GetRedirectionURLContext
type GetRedirectionURLContext = never;
Defined in: recipe/totp/types.ts:157
NormalisedConfig
type NormalisedConfig = object & NormalisedRecipeModuleConfig<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;
Defined in: recipe/totp/types.ts:145
Type Declaration
OnHandleEventContext
type OnHandleEventContext =
| {
action: "TOTP_CODE_VERIFIED";
userContext: UserContext;
}
| {
action: "TOTP_DEVICE_VERIFIED";
deviceName: string;
userContext: UserContext;
wasAlreadyVerified: boolean;
}
| {
action: "TOTP_DEVICE_CREATED";
deviceName: string;
userContext: UserContext;
};
Defined in: recipe/totp/types.ts:173
PreAndPostAPIHookAction
type PreAndPostAPIHookAction =
| "CREATE_DEVICE"
| "VERIFY_CODE"
| "VERIFY_DEVICE"
| "REMOVE_DEVICE"
| "LIST_DEVICES";
Defined in: recipe/totp/types.ts:159
PreAPIHookContext
type PreAPIHookContext = object;
Defined in: recipe/totp/types.ts:166
Properties
TOTPDeviceInfo
type TOTPDeviceInfo = object;
Defined in: recipe/totp/types.ts:46
Properties
TOTPMFAAction
type TOTPMFAAction =
| {
callingCreateDevice: boolean;
deviceInfo: TOTPDeviceInfo | undefined;
error: string | undefined;
showAccessDenied: boolean;
showBackButton: boolean;
type: "load";
}
| {
deviceInfo: TOTPDeviceInfo;
type: "createDevice";
}
| {
error: string | undefined;
nextRetryAt: number;
type: "setBlocked";
}
| {
currAttemptCount?: number;
error: string | undefined;
maxAttemptCount?: number;
showAccessDenied: boolean;
type: "setError";
}
| {
error: string | undefined;
type: "restartFlow";
}
| {
type: "success";
}
| {
type: "showSecret";
};
Defined in: recipe/totp/types.ts:53
TOTPMFAChildProps
type TOTPMFAChildProps = Omit<TOTPMFAProps, "featureState" | "dispatch">;
Defined in: recipe/totp/types.ts:121
TOTPMFACommonProps
type TOTPMFACommonProps = object;
Defined in: recipe/totp/types.ts:102
Properties
TOTPMFAProps
type TOTPMFAProps = object;
Defined in: recipe/totp/types.ts:109
Properties
TOTPMFAScreenConfig
type TOTPMFAScreenConfig = object;
Defined in: recipe/totp/types.ts:123
Properties
TOTPMFAState
type TOTPMFAState = object;
Defined in: recipe/totp/types.ts:89
Properties
UserInput
type UserInput = object & RecipeModuleUserInput<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;
Defined in: recipe/totp/types.ts:131