ReferenceAsk
Remy Reference/interface/auth.confirmPhoneChange
?

auth.confirmPhoneChange

Confirm a phone change with the code sent by SMS.
auth.confirmPhoneChange(phone, code) AppUser

Complete the phone change begun by requestPhoneChange, using the texted code. Resolves the updated AppUser and fires onAuthStateChanged.

Parameters
phone
string
RequiredE.164 phone number, e.g. +15559876543.
code
string
RequiredThe 6-digit code sent by SMS.
Usage
const user = await auth.confirmPhoneChange('+15559876543', '123456');