CloudTwin  ROS2 Humble
Digital twin for path and trajectory optimisation
Variables
use-two-factor-auth.ts File Reference

Variables

 import { useHttp } from '@inertiajs/react'
 
export const OTP_MAX_LENGTH = 6
 
export const useTwoFactorAuth
 
export type UseTwoFactorAuthReturn
 

Variable Documentation

◆ import

import { useHttp } from '@inertiajs/react'

◆ OTP_MAX_LENGTH

export const OTP_MAX_LENGTH = 6

◆ useTwoFactorAuth

export const useTwoFactorAuth

◆ UseTwoFactorAuthReturn

export type UseTwoFactorAuthReturn
Initial value:
= {
qrCodeSvg: string | null;
manualSetupKey: string | null;
recoveryCodesList: string[];
hasSetupData: boolean;
errors: string[];
clearErrors: () => void;
clearSetupData: () => void;
clearTwoFactorAuthData: () => void;
fetchQrCode: () => Promise<void>;
fetchSetupKey: () => Promise<void>;
fetchSetupData: () => Promise<void>;
fetchRecoveryCodes: () => Promise<void>;
}