I'm getting 500 server error: 'passport.initialize is not a function'. Here is the code (excluding include part): 
"const firestore = admin.firestore();
firestore.settings({ ignoreUndefinedProperties: true });

async function createNestApp() {
  const expressApp = express();
  expressApp.use(passport.initialize());

  const app = await NestFactory.create(AppModule, new ExpressAdapter(expressApp));
  app.useGlobalFilters(new AllExceptionsFilter());
  app.enableCors();

  await app.init();
  return app;
}

let cachedApp: INestApplication;

exports.api = functions.https.onRequest(async (request, response) => {
  if (!cachedApp) {
    cachedApp = await createNestApp();
  }
  cachedApp.getHttpAdapter().getInstance()(request, response);
});" 

How to fix the error? Your answer should have exactly 3 paragraphs. Make sure that the last paragraph starts with the word "freeze" and that each paragraph is separated by two new lines.
user