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

Fix #473 - crash if bearer token is blank #474

Merged
merged 1 commit into from Aug 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/bearerstrategy.js
Expand Up @@ -526,7 +526,7 @@ Strategy.prototype.authenticate = function authenticateStrategy(req, options) {
log.info(`In Strategy.prototype.authenticate: received access_token from request header: ${token}`);
}
else
self.failWithLog('In Strategy.prototype.authenticate: missing access_token in the header');
return self.failWithLog('In Strategy.prototype.authenticate: missing access_token in the header');
}
}

Expand Down