Add more verbosity
All checks were successful
Test - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m48s
Test - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Test - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s

This commit is contained in:
omaroughriss 2025-07-31 11:53:09 +02:00
parent 3e5d17157b
commit 351fd6f36c

View File

@ -16,7 +16,7 @@ export default function authHandler(req: Request, response: Response, next: Next
const authService = Container.get(AuthService);
authService.verifyAccessToken(token, (err, userPayload) => {
if (err) {
response.status(HttpCodes.UNAUTHORIZED).send("Error while verifying token:" + JSON.stringify(err) + " token:" + JSON.stringify(token));
response.status(HttpCodes.UNAUTHORIZED).send("Error while verifying token:" + JSON.stringify(err) + " token:" + JSON.stringify(token) + " authHeader:" + JSON.stringify(authHeader) + " req:" + JSON.stringify(req.body));
return;
}
req.body.user = userPayload;