fix: add debug logs for invalid-auth responses

This commit is contained in:
Karol Sójko
2023-06-28 14:30:39 +02:00
parent f58f90667c
commit d5a8409bb5
6 changed files with 27 additions and 2 deletions
@@ -42,6 +42,8 @@ export class RequiredCrossServiceTokenMiddleware extends AuthMiddleware {
_next: NextFunction,
): boolean {
if (!authHeaderValue) {
this.logger.debug('Missing auth header')
response.status(401).send({
error: {
tag: 'invalid-auth',