diff --git a/src/guard/ws.guard.ts b/src/guard/ws.guard.ts index bb5d19b..0db087e 100644 --- a/src/guard/ws.guard.ts +++ b/src/guard/ws.guard.ts @@ -37,7 +37,7 @@ export class WsGuard implements CanActivate { return new Promise(function (resolve, reject) { jwt.verify(bearerToken, getKey, function (err, decoded) { if (err || !decoded || !decoded['sub'] || !decoded['preferred_username']) { - reject('User could not be resolved!'); + resolve('User could not be resolved!'); return; } console.log(decoded);