How to check current user password?

So, maybe I missed it somewhere in the docs, but I couldn't find anything like it.

I do not want my users to enter their current password in order to create a new one. From what I understand, if the user is authenticated, he can update his password without providing his current one.

Even if it can be somewhat safe, I would prefer that he print his old one so that people do not go through already verified sessions from family members or change pw.

Is there any way to do this?

(I have no problem using the Admin SDK since I already configured the server for this kind of thing)

+4
source share
1

reauthenticate API . , , . - :

firebase.auth().currentUser.reauthenticateWithCredential(firebase.auth.EmailAuthProvider.credential(firebase.auth().currentUser.email, providedPassword);

, firebase.auth(). currentUser.updatePassword(newPassword);

+5

Source: https://habr.com/ru/post/1663552/


All Articles