code: function hashPassword(app1, password) {
    const hook = {
      type: 'before',
      data: { password },
      params: { provider: null },
      app: {
        get(str) {
          return app1.get(str);
        },
      },
    };
  
    return auth.hashPassword()(hook)
      .then(hook1 => hook1.data.password);
  }
docs: Helpers