Skip to content

Commit

Permalink
fix: Reply was already sent
Browse files Browse the repository at this point in the history
  • Loading branch information
neSpecc committed Sep 3, 2023
1 parent ea7303d commit 464f141
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/presentation/http/middlewares/authRequired.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export default (authService: AuthService): preHandlerHookHandler => {
await authService.verifyAccessToken(token);

done();

return reply;
} catch (error) {
return reply
.code(StatusCodes.UNAUTHORIZED)
Expand Down

0 comments on commit 464f141

Please sign in to comment.