Last updated 4 months ago
Set a new password for the current user.
The current password as an extra precaution.
The new password to set.
OK
const response = await fetch('/me/password', { method: 'POST', headers: { "Authorization": "Bearer jwt", "Content-Type": "application/json" }, body: JSON.stringify({ "currentPassword": "password", "newPassword": "password" }), }); const data = await response.json();
{ "code": "text", "message": "text" }