Skip to content

/auth/change-password

POST
/auth/change-password

Change the password of the user

Authorizations

Request Body required

object
newPassword
required

The new password to set

string
currentPassword
required

The current password

string
revokeOtherSessions

Revoke all other sessions

string

Responses

200

Success

object
user

The user object

object
name
string
email
string
emailVerified
boolean
image
string
createdAt
date
updatedAt
date
role
string
banned
boolean
banReason
string
banExpires
date
username
string
isAnonymous
boolean

400

Bad Request. Usually due to missing parameters, or invalid parameters.

object
message
required
string

401

Unauthorized. Due to missing or invalid authentication.

object
message
required
string

403

Forbidden. You do not have permission to access this resource or to perform this action.

object
message
string

404

Not Found. The requested resource was not found.

object
message
string

429

Too Many Requests. You have exceeded the rate limit. Try again later.

object
message
string

500

Internal Server Error. This is a problem with the server that you cannot fix.

object
message
string