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