I have the following code:
const password = changePasswordFrom.value.password;
this._firebaseAuth.currentUser.then(user => {
user?.updatePassword(password).then(() => {
//some code
}, error => {
//error
});
});
It is working fine but If I stay logged for more time and I try to change the password I start getting the error: POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/setAccountInfo?key=XXX 400 (zone.js)
I can't find what is the reason for this. Any ideas how to fix it?