Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.

Commit 49ea01d

Browse files
authoredAug 20, 2020
Merge pull request #474 from jthorel/dev
Fix #473 - crash if bearer token is blank
2 parents d3e4641 + d8cffbe commit 49ea01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/bearerstrategy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ Strategy.prototype.authenticate = function authenticateStrategy(req, options) {
526526
log.info(`In Strategy.prototype.authenticate: received access_token from request header: ${token}`);
527527
}
528528
else
529-
self.failWithLog('In Strategy.prototype.authenticate: missing access_token in the header');
529+
return self.failWithLog('In Strategy.prototype.authenticate: missing access_token in the header');
530530
}
531531
}
532532

0 commit comments

Comments
 (0)
This repository has been archived.