TwoFactorLoginForm
A two-factor login block that prompts for the 6-digit TOTP code from the user's authenticator app during sign-in. Wired up to the useAccAuth composable so it completes 2FA login out of the box.
Install
Run the following command to install the two-factor login form block:
npx acc-nuxt add TwoFactorLoginFormPreview
Two-factor authentication required
Back to loginAuthentication
This block works automatically with the useAccAuth composable. It reads the challenge token from shared state (set by LoginForm when MFA is required), then calls signInWith2FA with the user's TOTP code to complete login — no extra wiring required.
If the challenge token is missing or expired, the block shows a "Back to login" link so the user can restart the authentication flow.