Home > @firebase/auth > updatePassword
updatePassword() function
Updates the user's password.
Signature:
export declare function updatePassword(user: User, newPassword: string): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
user | User | The user. |
newPassword | string | The new password. |
Returns:
Promise<void>
Description
Important: this is a security sensitive operation that requires the user to have recently signed in. If this requirement isn't met, ask the user to authenticate again and then call reauthenticateWithCredential().