diff --git a/lib/index.js b/lib/index.js index 0eb6f79..0ef276f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -173,7 +173,7 @@ function authorize(options, onConnection) { } // Store encoded JWT - data[options.encodedPropertyName] = token; + socket[options.encodedPropertyName] = token; var onJwtVerificationReady = function(err, decoded) {