From a92995e8ff1e8fb188337cbd75e21628a2b5259a Mon Sep 17 00:00:00 2001 From: Chakshu Gautam Date: Fri, 31 Mar 2023 14:28:04 +0530 Subject: [PATCH] Add logs for nlp@samagra --- src/guard/ws.guard.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guard/ws.guard.ts b/src/guard/ws.guard.ts index 4dbc406..d3934c4 100644 --- a/src/guard/ws.guard.ts +++ b/src/guard/ws.guard.ts @@ -32,6 +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); context.args[0].handshake.headers.userId = decoded.sub; context.args[0].handshake.headers.userPhone = decoded['preferred_username'];