#74 social login
This commit is contained in:
parent
fa9bdee3ee
commit
f7a19c2213
|
@ -13,9 +13,7 @@ app.use(express.urlencoded({ extended: true }));
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(session({
|
app.use(session({
|
||||||
secret: process.env.SECRET,
|
secret: process.env.SECRET,
|
||||||
cookie: {
|
cookie: {},
|
||||||
secure: process.env.NODE_ENV === 'production',
|
|
||||||
},
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
app.use(async function (req, res, next) {
|
app.use(async function (req, res, next) {
|
||||||
|
|
Reference in New Issue