Add logs while verifying token
All checks were successful
All checks were successful
This commit is contained in:
parent
c33d4faacd
commit
3e5d17157b
@ -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");
|
||||
response.status(HttpCodes.UNAUTHORIZED).send("Error while verifying token:" + JSON.stringify(err) + " token:" + JSON.stringify(token));
|
||||
return;
|
||||
}
|
||||
req.body.user = userPayload;
|
||||
|
Loading…
x
Reference in New Issue
Block a user