const cookieOptions = { domain: "localhost", path: "/", httpOnly: true, secure: true, sameSite: "none", maxAge: 60 * 1000, // 1 minute };