Cloudflare worker uses passport-google-oauth20

Hello! I am trying to use cloudflare to implement oauth2. I picked passport-google-oauth20 package to implement this + Hono framework. But I faced this error. Does someone have any idea how can I fix it? I thought I can use flag

      3 │     https= require('https'),

This is the script of my auth

import { Hono } from 'hono';
import passport from 'passport';
import { Strategy, StrategyOptions, Profile, VerifyCallback } from 'passport-google-oauth20';

const auth = new Hono();

const strategyOptions: StrategyOptions = {
	clientID: 'my-client-id',
	clientSecret: 'my-secret',
	callbackURL: 'http://localhost:3000/google/callback',

const verify = (accessToken: string, refreshToken: string, profile: Profile, done: VerifyCallback): void => {
	// User.findOrCreate({ googleId: }, function (err, user) {
	// 	return cb(err, user);
	// });

passport.use(new Strategy(strategyOptions, verify));

auth.get('google/login', passport.authenticate('google', { scope: ['profile'] }));

	passport.authenticate('google', { failureRedirect: '/login' }, function (req: any, res: any) {
		// Successful authentication, redirect home.

export default auth;

Hey! Were you able to solve this? I am beginner trying to implement google login a personal project. I am using Hono for the backend. Can you please the code on how to do so?