Dat Vo
Dat Vo
AdminJS.registerAdapter({ Resource: AdminJSMongoose.Resource, Database: AdminJSMongoose.Database, }); const admin = new AdminJS(Admin); const sessionStore = new MongoDBStore({ uri: mongoUri, collection: "sessions", }); const adminRouter = AdminJSExpress.buildAuthenticatedRouter( admin, { authenticate, cookieName: "adminjs",...
when i set config var on heroku NODE_ENV='production' and set like this cookie: { httpOnly: process.env.NODE_ENV === "production", secure: true, }, it's still not work, and i check cookie not...