The newest version of Google Identity Toolkit has been released as Google Cloud's Identity Platform and Firebase Authentication. These products include upgraded client SDKs, open source UI libraries, session management and integrated email sending service for forgotten password flows.

Based on your needs, new projects should use either Identity Platform or Firebase Authentication. To migrate an existing project from Identity Toolkit, see the Identity Platform migration guide or Firebase Authentication migration guide.

Relyingparty: resetPassword

Reset password for a user.

Request

HTTP request

POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/resetPassword

Request body

In the request body, supply data with the following structure:

{
  "oobCode": string,
  "newPassword": string,
  "oldPassword": string,
  "email": string
}
Property name Value Description Notes
oobCode string The confirmation code.
newPassword string The new password inputted by the user.
oldPassword string The old password inputted by the user.
email string The email address of the user.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "identitytoolkit#ResetPasswordResponse",
  "email": string
}
Property name Value Description Notes
kind string The fixed string "identitytoolkit#ResetPasswordResponse".
email string The user's email.