airtable Oauth
This commit is contained in:
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user