Skip to content

Commit

Permalink
Let => const in lib/appSession.js
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Jan 23, 2020
1 parent e68a3b9 commit 5ef59b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/appSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = ({ name, secret, duration, cookieOptions = {} }) => {
if (req[name] && Object.keys(req[name]).length > 0) {
const value = encrypt(JSON.stringify(req[name]), { iat, uat, exp });

let thisCookieOptions = Object.assign({}, cookieOptions);
const thisCookieOptions = Object.assign({}, cookieOptions);
thisCookieOptions.expires = cookieOptions.ephemeral ? 0 : new Date(exp * 1000);
delete thisCookieOptions.ephemeral;

Expand Down

0 comments on commit 5ef59b1

Please sign in to comment.