hedgedoc/src/auth
Philip Molares 84915b61ac auth: Fix handling of internal server errors
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>
2021-01-29 20:33:56 +01:00
..
auth-token-with-secret.dto.ts auth: Add tests for AuthService 2021-01-25 21:30:02 +01:00
auth-token.dto.ts auth: Integrate suggestions by @davidmehren 2021-01-25 21:30:02 +01:00
auth-token.entity.ts auth: Add maximum token lifetime of 2 years. 2021-01-25 21:30:08 +01:00
auth.module.ts auth: Add tests for AuthService 2021-01-25 21:30:02 +01:00
auth.service.spec.ts auth: Add maximum token lifetime of 2 years. 2021-01-25 21:30:08 +01:00
auth.service.ts auth: Fix handling of internal server errors 2021-01-29 20:33:56 +01:00
mock-auth.guard.ts auth: fixes unit and e2e tests 2021-01-25 21:30:02 +01:00
token-auth.guard.ts auth: adds token-auth to public api 2021-01-25 21:29:59 +01:00
token.strategy.ts auth: Fix handling of internal server errors 2021-01-29 20:33:56 +01:00