useSetup2fa hook initiates the 2FA setup flow, returning a QR code URI and secret that the user can add to their authenticator app. Follow with useEnable2fa to complete enrollment.
Hook for setting up two-factor authentication
useSetup2fa hook initiates the 2FA setup flow, returning a QR code URI and secret that the user can add to their authenticator app. Follow with useEnable2fa to complete enrollment.