Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Change the password of the user
cURL
curl --request POST \ --url https://example.com/api/auth/change-password \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "currentPassword": "<string>", "newPassword": "<string>" } '
{ "user": { "createdAt": "2023-11-07T05:31:56Z", "email": "jsmith@example.com", "emailVerified": true, "id": "<string>", "name": "<string>", "updatedAt": "2023-11-07T05:31:56Z", "image": "<string>" }, "token": "<string>" }
Bearer token authentication
The current password is required
The new password to set
Must be a boolean value
Password successfully changed
Show child attributes
New session token if other sessions were revoked