From 6f875424b0fdb2618f92d0daf346f03cb9579fd6 Mon Sep 17 00:00:00 2001 From: Chakshu Gautam Date: Fri, 31 Mar 2023 14:33:33 +0530 Subject: [PATCH] Issues --- src/guard/ws.guard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guard/ws.guard.ts b/src/guard/ws.guard.ts index d3934c4..149257e 100644 --- a/src/guard/ws.guard.ts +++ b/src/guard/ws.guard.ts @@ -32,7 +32,7 @@ export class WsGuard implements CanActivate { context.args[0].handshake.headers.authorization.split(' ')[1]; return new Promise(function (resolve, reject) { jwt.verify(bearerToken, getKey, function (err, decoded) { - this.logger.error(decoded); + console.log(decoded); context.args[0].handshake.headers.userId = decoded.sub; context.args[0].handshake.headers.userPhone = decoded['preferred_username'];