airtable Oauth

This commit is contained in:
AmitChauhan63390
2025-01-26 14:22:36 +05:30
parent f0e289d90e
commit 2009089e2d
9 changed files with 617 additions and 161 deletions

View File

@@ -18,6 +18,7 @@ import { fork } from 'child_process';
import { capture } from "./utils/analytics";
import swaggerUi from 'swagger-ui-express';
import swaggerSpec from './swagger/config';
import session from 'express-session';
const app = express();
app.use(cors({
@@ -26,6 +27,16 @@ app.use(cors({
}));
app.use(express.json());
app.use(
session({
secret: 'your_secret_key', // Replace with a secure secret key
resave: false, // Do not resave the session if it hasn't changed
saveUninitialized: true, // Save new sessions
cookie: { secure: false }, // Set to true if using HTTPS
})
);
const server = http.createServer(app);
/**