Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to add options to update users' email and password? #85

Open
Magnarks opened this issue Dec 6, 2024 · 0 comments
Open

Comments

@Magnarks
Copy link

Magnarks commented Dec 6, 2024

Greetings, I am making a desktop application for my users who already use a web application, but it turns out that when I wanted to add the option to restore password, pyrebase does not have an option to directly update the new password, something that the Javascript SDK or the official Python SDK have (I do not use it, because it does not have a method to authenticate users) and I would like to know if it is possible to add this to Pyrebase, so as not to depend on firebase_admin and thus my application does not have to use 2 libraries for firebase.

I share an example of the process in Javascript

import { getAuth, updatePassword } from "firebase/auth";

const auth = getAuth();

const user = auth.currentUser;
const newPassword = getASecureRandomPassword();

updatePassword(user, newPassword).then(() => {
// Update successful.
}).catch((error) => {
// An error occurred
//...
});

I hope it will be possible to add it in the future, because pyrebase already allows updating other user data similar to javascript, such as the display name, or photo URL.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant