mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Stop lost connection message bouncing when not authed
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user