Skip to content

Commit

Permalink
restore session
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Sep 1, 2024
1 parent 0aca678 commit fc99076
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/modules/adminmodule/admin.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import * as AdminJSTypeorm from '@adminjs/typeorm';
import { User } from '../../entities/user.entity.js';
import { Post } from '../../entities/post.entity.js';
import { Comment } from '../../entities/comment.entity.js';
import * as process from 'node:process';
import importExportFeature from '@adminjs/import-export';

AdminJS.registerAdapter({
Expand Down Expand Up @@ -43,11 +42,11 @@ const componentLoader = new ComponentLoader();
cookiePassword: process.env.USERNAME,
cookieName: process.env.PASSWORD,
},
// sessionOptions: {
// resave: true,
// saveUninitialized: true,
// secret: 'secret',
// },
sessionOptions: {
resave: true,
saveUninitialized: true,
secret: 'secret',
},
};
},
}),
Expand Down

0 comments on commit fc99076

Please sign in to comment.