We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d50cb2d + be1602f commit ed1f8a3Copy full SHA for ed1f8a3
lib/handlers/authenticate-handler.js
@@ -139,7 +139,7 @@ class AuthenticateHandler {
139
140
getTokenFromRequestHeader (request) {
141
const token = request.get('Authorization');
142
- const matches = token.match(/^Bearer\s(\S+)/);
+ const matches = token.match(/^Bearer ([0-9a-zA-Z-._~+/]+=*)$/);
143
144
if (!matches) {
145
throw new InvalidRequestError('Invalid request: malformed authorization header');
0 commit comments