Replace Password

Replace the user's password of an existing user utilizing the password API.

Next Steps

Sign the user in with their new password via Sign-In

See Also

  • See The User Object for further details on how to identify users and their contact information such as email addresses and phone number.
  • You can also utilize Update Password or Reset Password as alternatives to change a user's password.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer <Project ID>

SecurityAuthProjectId
Request
Request Body schema: application/json
required
loginId
string
oldPassword
string
newPassword
string
Responses
200

OK

post/v1/auth/password/replace
Request samples
Response samples
application/json
{
  • "sessionJwt": "string",
  • "refreshJwt": "string",
  • "cookieDomain": "string",
  • "cookiePath": "string",
  • "cookieMaxAge": 0,
  • "cookieExpiration": 0,
  • "user": {
    },
  • "firstSeen": true,
  • "idpResponse": {
    }
}