# useMFA | @account-kit/react

> Overview of the useMFA hook from @account-kit/react

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
function useMFA(): UseMFAResult;
```

Defined in: [account-kit/react/src/hooks/useMFA.ts:53](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useMFA.ts#L53)

[Hook](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useMFA.ts) that provides functions and state for managing multi-factor authentication (MFA) operations.
Handles adding, verifying, removing, and getting MFA factors for an authenticated account.

The hook checks if the signer is connected before allowing MFA operations and provides an `isReady` flag
to indicate whether MFA operations can be performed.

## Example

```ts twoslash
import { useMFA } from "@account-kit/react";

const { addMFA, verifyMFA, removeMFA, getMFAFactors, isReady } = useMFA();
```

## Returns

[`UseMFAResult`](../type-aliases/UseMFAResult)

An object containing functions and state for handling MFA operations