diff --git a/lib/index.js b/lib/index.js index 3f933df..dbf5c05 100644 --- a/lib/index.js +++ b/lib/index.js @@ -73,7 +73,7 @@ function authorize(options, onConnection) { var scheme = parts[0], credentials = parts[1]; - if (scheme === 'Bearer') { + if (scheme.toLowerCase() === 'bearer') { token = credentials; } } else {