The newest version of Google Identity Toolkit has been released as Firebase Authentication. It includes upgraded client SDKs, open source UI libraries, session management and integrated email sending service for forgotten password flows.

New projects should use Firebase Authentication. To migrate an existing project from Identity Toolkit to Firebase Authentication, see the 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.