const GoogleRouteHandler: AppRouteHandler<typeof GoogleRoute> = async (c) => { const controller = new AuthenticationController(); const { state, code, url } = await controller.createGoogleAuthorizationURL(); setCookie(c, "googleOAuthVerifier", code, { expires: new Date(Date.now() + 1000 * 60 * 10), httpOnly: true, sameSite: "lax", secure: process.env.NODE_ENV === "production", }); setCookie(c, "googleOAuthState", state, { expires: new Date(Date.now() + 1000 * 60 * 10), httpOnly: true, sameSite: "lax", secure: process.env.NODE_ENV === "production", }); return c.redirect(url.toString(), 301);};