> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useEnrollMfa

> Returns a mutation for login-time TOTP enrollment.

This hook is exported by both @getpara/react-sdk-lite and @getpara/react-sdk.

## Import

```ts theme={null}
import { useEnrollMfa } from "@getpara/react-sdk-lite";
```

This is distinct from the recovery-gating 2FA setup hook.

async

Returns a mutation for login-time second-factor enrollment.

Copy method signature

### Returns

`UseMutationResult with enrollMfa and enrollMfaAsync`

The async trigger accepts EnrollMfaParams, such as \{ method: "totp" }, and resolves to TwoFactorEnrollResponse.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.