docs: async function log(err, auth) {
      if (err.print) {
          console.log(err.message);
      }
  
      try {
          err = JSON.parse(JSON.stringify(err, Reflect.ownKeys(err)));
      } catch (error) {
          err = err;
      }
  
      let userId = 'unknown';
      try {
          await firebaseJs.authWithFirebase(auth);
          userId = firebase.auth().currentUser.uid;
      } catch (error) {}
  
      try {
          let version = 'unkown';
          if (pjson.version) {
              version = pjson.version.replace(/\./g, '_');
          }
  
          const requestData = {
              userId,
              version,
              err,
              timestamp: {
                  ".sv": "timestamp",
              },
          };
  
          const result = await request({
              url: `${constants.FIREBASE_DATABASE_URL}/logs/errors/${version}/${userId}.json`,
              method: "POST",
              json: true,
              headers: {
                  "content-type": "application/json",
              },
              body: requestData,
          });
          // console.log(`Error logged: ${result.name}`);
      } catch (error) {}
      return;
  }