Skip to content

POST   /auth/change-password

Change password for authenticated user

Changes the password of the currently logged in user, requiring verification with the old password

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Request Body

{
"email": "string",
"oldPassword": "string",
"newPassword": "string"
}

Try it out

Loading...

Output:

Responses

Description

Password changed successfully

{
"message": "Password changed successfully"
}

References

#/components/schemas/Error

type: object
properties:
error:
type: string
description: Error message
status:
type: integer
description: HTTP status code
message:
type: string
description: Detailed error message
description: Error response object
required:
- error

Route Source Code

Check out the source code for this route entrypoint here: /auth/change-password/route.ts

Or the swagger.yaml spec this documentation was generated from: /auth/change-password/swagger.yaml