refactor: changed onConnect function in subscriptionHandler to decode cookies for subscriptions

This commit is contained in:
Balu Babu
2023-02-08 14:36:01 +05:30
parent 0aac046a0e
commit 7fde6db9d1
3 changed files with 20 additions and 9 deletions

View File

@@ -37,8 +37,6 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
if (!payload) throw new ForbiddenException(INVALID_ACCESS_TOKEN);
const user = await this.usersService.findUserById(payload.sub);
console.log('user', user);
if (O.isNone(user)) {
throw new UnauthorizedException(USER_NOT_FOUND);
}