blob: c31b47e91837a991b2899566dc6402b2abd40ecd (
plain)
1
2
3
4
5
6
|
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
import { Socket } from 'socket.io';
export const GatewayJwtBody = createParamDecorator((data: unknown, ctx: ExecutionContext) => {
const req = ctx.switchToHttp().getRequest() as Socket;
return req.handshake.auth.jwtBody;
});
|