Skip to content

Update Password : getASecureRandomPassword is not defined #363

Open
@NinoMichael

Description

@NinoMichael

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.
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions