Skip to main content
You’re viewing the 2.0 (LTS) docs. View the current 3.0 version of this page.
The useEnable2fa hook completes 2FA enrollment by verifying the code from the user’s authenticator app. Call it after useSetup2fa has returned the QR code and the user has scanned it.

Import

Usage