We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jankapunkt
Learn more about funding links in repositories.
Report abuse
2 parents b9d4093 + 4962cd9 commit be1602fCopy full SHA for be1602f
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