Allow the currently logged in user to change their password by passing their existing password and a new password.
const currentPassword = 'P@$5w0rd'const newPassword = 'P@$5w0rD'await authService.changePassword(currentPassword, newPassword) Copy
const currentPassword = 'P@$5w0rd'const newPassword = 'P@$5w0rD'await authService.changePassword(currentPassword, newPassword)
Allow the currently logged in user to change their password by passing their existing password and a new password.
Example