Skip to content

Commit

Permalink
Add logs for nlp@samagra
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam authored Mar 31, 2023
1 parent 4a3f6a0 commit a92995e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/guard/ws.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit a92995e

Please sign in to comment.