code: function loginP(authParams) {
    return new Promise((resolve, reject) =>
      this.login(authParams, (success, data) => {
        if (success) resolve(data);
        else reject(new Error(data));
      }));
  }
docs: /* eslint-disable implicit-arrow-linebreak