?
auth.confirmEmailChange
Confirm an email change with the code sent to the new address.
auth.confirmEmailChange(email, code) → AppUser
Complete the email change begun by requestEmailChange, using the code sent to the new address. Resolves the updated AppUser and fires onAuthStateChanged.
Parameters
email
string
RequiredThe new email address.
code
string
RequiredThe 6-digit code sent to it.
Usage
const user = await auth.confirmEmailChange('new@example.com', '123456');