Skip to content

Commit

Permalink
Fixed usage of regenerate, preserve old cookieOpts
Browse files Browse the repository at this point in the history
Co-authored-by: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: Oleg Gheorghita <[email protected]>
  • Loading branch information
ogheo and gurgunday authored Jul 10, 2024
1 parent c5aa1f3 commit 9c16563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ module.exports = class Session {

options (opts) {
if (Object.keys(opts).length) {
this[cookieOptsKey] = opts
Object.assign(this.cookie, this[cookieOptsKey])
Object.assign(this[cookieOptsKey], opts)
this.cookie = new Cookie(this[cookieOptsKey], this[requestKey])
}
}

Expand Down

0 comments on commit 9c16563

Please sign in to comment.