Я просто хочу обновить аутентифицируемый адрес электронной почты текущего пользователя.Я пробовал много решений, таких как метод updateEmail Firebase, но он не работает!если кто-то знает, пожалуйста, скажите мне, как я мог добиться этого Спасибо заранее !!

@IBAction func btnResetEmailClick(_ sender: UIButton) {
let auth = Auth.auth()
guard let email = self.txtEmailAddress.text ?? auth.currentUser?.email else { return }
// email that i have to update with current user email
auth.currentUser?.updateEmail(to: (auth.currentUser?.email)!, completion: { (error) in
if error == nil{
}else{
}
})
}