mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 12:14:54 +00:00
convert project from microservices to rest apis
This commit is contained in:
@ -2,7 +2,7 @@ import { UnauthorizedException } from '@nestjs/common';
|
||||
import { AuthGuard } from '@nestjs/passport';
|
||||
|
||||
export class JwtAuthGuard extends AuthGuard('jwt') {
|
||||
handleRequest(err, user, info) {
|
||||
handleRequest(err, user) {
|
||||
if (err || !user) {
|
||||
throw err || new UnauthorizedException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user