mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-10-20 14:12:10 -04:00
84915b61ac
Catch all NotInDbErrors and TokenNotValidError and transform them to UnauthorizedException with the correct message. This prevents nest from telling the api user that an internal server error has happened and instead display the correct http error code 401. Signed-off-by: Philip Molares <philip.molares@udo.edu> |
||
---|---|---|
.. | ||
auth-token-with-secret.dto.ts | ||
auth-token.dto.ts | ||
auth-token.entity.ts | ||
auth.module.ts | ||
auth.service.spec.ts | ||
auth.service.ts | ||
mock-auth.guard.ts | ||
token-auth.guard.ts | ||
token.strategy.ts |