diff --git a/lib/index.js b/lib/index.js index e53aa5d..37405fd 100644 --- a/lib/index.js +++ b/lib/index.js @@ -144,7 +144,7 @@ function authorize(options, onConnection) { data.decoded_token = decoded; - auth.success(data, accept); + return auth.success(data, accept); }); }; }