docs: function resetPassword (c) {
    return function resetPassword (realmName, userId, payload) {
      return new Promise((resolve, reject) => {
        payload = payload || {};
        payload.type = 'password';
  
        if (!userId) {
          return reject(new Error('userId is missing'));
        }
  
        if (!payload.value) {
          return reject(new Error('value for the new password is missing'));
        }
  
        const req = {
          url: `${c.baseUrl}/admin/realms/${realmName}/users/${userId}/reset-password`,
          auth: {
            bearer: privates.get(c).accessToken
          },
          json: true,
          method: 'PUT',
          body: payload
        };
  
        request(req, (err, resp, body) => {
          if (err) {
            return reject(err);
          }
  
          // Check that the status cod
          if (resp.statusCode !== 204) {
            return reject(body);
          }
  
          return resolve(body);
        });
      });
    };
  }