Stop lost connection message bouncing when not authed

This commit is contained in:
Nick O'Leary
2014-12-08 16:25:38 +00:00
parent 9bbe0799bd
commit f5d7903ecb
2 changed files with 9 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ var bearerStrategy = function (accessToken, done) {
Tokens.get(accessToken).then(function(token) {
if (token) {
Users.get(token.user).then(function(user) {
console.log(user);
if (user) {
done(null,{username:user.username},{scope:token.scope});
} else {