docs: function put_authorization_request(authorization_request) {
  
      if (authorization_request.granted) {
          authorization_request.expire_on = new Date();
      }
      return new Promise((resolve, reject) => {
          dbMgr
              .updateOne("authorization_request", {
                  _id: {
                      $eq: authorization_request._id
                  }
              }, {
                  $set: authorization_request
              }, {upsert: true})
              .then((result) => {
                  if (result.modifiedCount === 1) {
                      return resolve(authorization_request._id);
                  } else {
                      return reject(new Error("No authorization recoreds inserted"));
                  }
              }, (err) => {
                  reject(err);
              });
      });
  }