Setup MFA for the current user. The result will include a callback that
should be called with the valid TOTP from an authenticator app.
Example
const { secretCode, mfaCodeCallback } = awaitauthService.setupMfa() // Prompt the user to enter an MFA code constcode = prompt( `Please enter a one-time code from your MFA app after creating a new entry with secret: ${secretCode}.`, ) awaitmfaCodeCallback(code)
Setup MFA for the current user. The result will include a callback that should be called with the valid TOTP from an authenticator app.
Example