sendResetPasswordPhoneCode

Sends a reset password code to the phone number for first-factor reverification.

Use it when the user can't verify with their password, for example after verifyWithPassword fails with form_password_pwned. Complete it with verifyWithResetPasswordPhoneCode.

Parameters

phoneNumberId

The ID of the phone number, from a reset_password_phone_code factor in SessionVerification.supportedFirstFactors.