[js][auth] implemented currentUser.updatePassword() method
This commit is contained in:
parent
ad52991ffc
commit
916224014d
|
@ -173,13 +173,13 @@ export default class User {
|
|||
* @return {Promise}
|
||||
*/
|
||||
updatePassword(password: string): Promise<Object> {
|
||||
return promisify('updateUserPassword', FirebaseAuth, 'auth/')(password);
|
||||
return this._auth._interceptUserValue(FirebaseAuth.updatePassword(password));
|
||||
}
|
||||
|
||||
/**
|
||||
* Send verification email to current user.
|
||||
*/
|
||||
sendEmailVerification(): Promise<Object> {
|
||||
return promisify('sendEmailVerification', FirebaseAuth, 'auth/')();
|
||||
return this._auth._interceptUserValue(FirebaseAuth.sendEmailVerification());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue