diff --git a/lib/index.js b/lib/index.js index bcba250..3f933df 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 (/^Bearer$/i.test(scheme)) { + if (scheme === 'Bearer') { token = credentials; } } else {