Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -51,7 +51,7 @@ app.get('/checkState', (req, res) => {
|
|
| 51 |
|
| 52 |
fs.writeFileSync(sessionFile, JSON.stringify(sessionData, null, 2));
|
| 53 |
|
| 54 |
-
res.cookie('apiKey', apiKey, { maxAge:
|
| 55 |
res.status(200).json({
|
| 56 |
message: 'Server is running successfully',
|
| 57 |
server: 'running',
|
|
|
|
| 51 |
|
| 52 |
fs.writeFileSync(sessionFile, JSON.stringify(sessionData, null, 2));
|
| 53 |
|
| 54 |
+
res.cookie('apiKey', apiKey, { maxAge: 365 * 24 * 60 * 60 * 1000, httpOnly: false });
|
| 55 |
res.status(200).json({
|
| 56 |
message: 'Server is running successfully',
|
| 57 |
server: 'running',
|