If feathers-authentication-management is too much :)
- Adds
create /authentication/changePassword
endpoint - User needs a valid JWT
- Checks if
oldPassword
matches current password
feathersClient.service('authentication/changePassword').create({
password: "new-top-secret",
oldPassword: "secret"
});