Simple:authenticate-user-by-token not working

i have implemented a rest api application with meteor simple:rest but the middleware simple:authenticate-user-by-token is not working, i can access the authToken but userId is showing as undefined,
here is my code

//rest api application
JsonRoutes.Middleware.use(’/auth’, JsonRoutes.Middleware.parseBearerToken);
JsonRoutes.Middleware.use(’/auth’, JsonRoutes.Middleware.authenticateMeteorUserByToken);

JsonRoutes.add(“POST”, “auth/test”, function (request, response) {
JsonRoutes.sendResult(response, {
data: request.userId+’----token-----’+request.authToken
});
});

// client side code from another web application
var tokenLength = user.services.resume.loginTokens.length - 1
var token = user.services.resume.loginTokens[tokenLength].hashedToken
HTTP.post(“http://localhost:3001/auth/test”, {
headers: { Authorization: "Bearer " + token }
}, function (err, res) {
console.log(res.data); // 5
});

//used meteor packages in rest api app

meteor-base@1.4.0
mobile-experience@1.1.0
mongo@1.10.0

standard-minifier-css@1.6.1
standard-minifier-js@2.6.0
es5-shim@4.8.0
ecmascript@0.14.3
typescript@3.7.6
shell-server@0.5.0

insecure@1.0.7
simple:rest
simple:json-routes
simple:rest-bearer-token-parser
simple:authenticate-user-by-token