firebase / firebase/snippets-web

Update Password : getASecureRandomPassword is not defined

Open
#363 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
802
Forks
285
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.