Skip to content

Commit

Permalink
Removed signed express session
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Aug 19, 2024
1 parent 6313a89 commit a9bccfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,14 +593,14 @@ function getcookie(req, name, secrets) {
}
}

// back-compat read from cookieParser() signedCookies data
/* Removed due to incompatibility with hyper-express// back-compat read from cookieParser() signedCookies data
if (!val && req.signedCookies) {
val = req.signedCookies[name];
if (val) {
deprecate('cookie should be available in req.headers.cookie');
}
}
}*/

// back-compat read from cookieParser() cookies data
if (!val && req.cookies) {
Expand Down
2 changes: 1 addition & 1 deletion test/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -2480,7 +2480,7 @@ describe('session()', function(){
})
})

it('should read from req.signedCookies', function(done){
xit('should read from req.signedCookies', function(done){
const app = express()
.use(cookieParser('keyboard cat'))
.use(function(req, res, next){ delete req.headers.cookie; next() })
Expand Down

0 comments on commit a9bccfb

Please sign in to comment.