Skip to content

Commit

Permalink
Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam authored Mar 31, 2023
1 parent a92995e commit 6f87542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guard/ws.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 6f87542

Please sign in to comment.