When I target the endpoint that requires the JWT token, bu I dont incldue this JWT token, the API halts and stops processing other requests. I guess this should not be the correct behaviour?
I get the unauthorized response on the postman, but stilll the API halts. I am expecting to receive the unaith reposne, but still process other requests.
it is just using authGuard("jwt") built in. No custom. Same for the strategy
i get this error:
throw err || new common_1.UnauthorizedException();
UnauthorizedException: Unauthorized
this happens on this piece of code inside the package passport:
handleRequest(err, user, info, context, status) { if (err || !user) { throw err || new common_1.UnauthorizedException(); } return user; }
seems to throw a exception that is not handle properly, so it halts the api.
any idea how to avoid teh halting?