Skip to content

Commit

Permalink
Update Authencation.js
Browse files Browse the repository at this point in the history
Added Cookie Configuration from configurations
  • Loading branch information
PrasannaBrabourame authored Sep 2, 2021
1 parent e3896af commit 2e73b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parse-Dashboard/Authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function initialize(app, options) {
secret: cookieSessionSecret,
resave: false,
saveUninitialized: false,
cookie: {
cookie: options.config.cookieSettings || {
secure: true, // if true only transmit cookie over https
httpOnly: true, // if true prevent client side JS from reading the cookie
maxAge: 1000 * 60 * 10 // session max age in miliseconds
Expand Down

0 comments on commit 2e73b97

Please sign in to comment.