Skip to content

Commit 968f266

Browse files
author
Michael Salinger
committed
Removed finally next
1 parent 72ccb18 commit 968f266

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ ExpressOAuthServer.prototype.authenticate = function(options) {
4545
})
4646
.tap(function(token) {
4747
res.locals.oauth = { token: token };
48+
next();
4849
})
4950
.catch(function(e) {
5051
return handleError(e, req, res);
51-
})
52-
.finally(next);
52+
});
53+
//.finally(next);
5354
};
5455
};
5556

@@ -131,6 +132,7 @@ var handleResponse = function(req, res, response) {
131132
*/
132133

133134
var handleError = function(e, req, res, response) {
135+
134136
if (response) {
135137
res.set(response.headers);
136138
}

0 commit comments

Comments
 (0)