Updating current password to new password in firebase

this is a question related to firebase.
when a user changes their password from the account settings page, i want to make sure the password saved in firestore to be updated with the new password. Can someone help me with this please!