snippets-web icon indicating copy to clipboard operation
snippets-web copied to clipboard

Update Password : getASecureRandomPassword is not defined

Open NinoMichael opened this issue 6 months ago • 0 comments

Hello, this code for updating password is not working to my JavaScript app. It always send that "getASecureRandomPassword" is not defined. Here is the code :

    const user = auth.currentUser;
    const newPassword = getASecureRandomPassword();
    
    updatePassword(user, newPassword)
    .then(function() {
      // Update successful.
    }).catch(function(error) {
      // An error happened.
    });

NinoMichael avatar Dec 21 '23 11:12 NinoMichael