We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c56515 commit 5991cc9Copy full SHA for 5991cc9
lambda/lambda.js
@@ -52,8 +52,8 @@ function parseToken(headers) {
52
if (authorization.length > 0) {
53
for (let i = 0; i < authorization.length; i++) {
54
const token = authorization[i].value || ''
55
- const prefix = 'Bearer ';
56
- if (token.startsWith(prefix)) {
+ const prefix = 'bearer ';
+ if (token.toLowerCase().startsWith(prefix)) {
57
return token.substring(prefix.length)
58
}
59
0 commit comments