Skip to content

Commit

Permalink
refactor: Update status code for auth exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwoonglee committed Jul 5, 2024
1 parent b2b916b commit d698e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/strategies/jwt.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
id: payload.id,
});
if (!user) {
throw new UserNotFoundException();
throw new UnauthorizedException('존재하지 않는 유저입니다.');
}
done(null, user);
}
Expand Down

0 comments on commit d698e19

Please sign in to comment.