startMfaEmailRegistration

client.startMfaEmailRegistration({
  accessToken: string,
  // Optional arguments
  redirectUrl: string
})

About this command

Starts the MFA email registration flow. When started, an email is sent to the user for verification.

If the user already has a verified email as an identifier in their account, no additional verification code is sent.

If an existing email exists but is unverified, it becomes automatically verified with verifyMfaEmailRegistration.

Examples

client.startMfaEmailRegistration({
    accessToken: 'eyJ0eXAiOiJKV1QiL...',
    redirectUrl: 'https://example.com/redirect'
  })

Parameters

accessToken string

The authorization credential JSON Web Token (JWT) used to access the ReachFive API, less than five minutes old.

redirectUrl string

The URL sent in the email to which the user is redirected. This URL must be whitelisted in the Allowed Callback URLs field of your ReachFive client settings.

Response

Type: Promise<void>