updatePassword()

Description

Update user password without password reset email flow.

Request

Make sure you send userToken is passed to createClient() method as this request always requires authorization. Read more about authorization.

Parameters

FieldRequiredData TypeDescription

oldPassword

string

Old user password

newPassword

string

New password for the user

Example

await client.auth().updatePassword('qwerty12345', 'not-qwerty12345')

Response

No content

Example

{}

Last updated

Copyright © 2023 Deskree Technologies Inc.