Skip to content

Commit db75115

Browse files
committed
Logging claim type if invalid
1 parent 5d772a2 commit db75115

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/src/middlewares/claim.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export function ClaimGuard(req: Request, _res: Response, next: NextFunction) {
3131
}
3232
break;
3333
default:
34+
console.log("Unsupported claim type:", context.env.CLAIM_TYPE);
3435
next(
3536
new UnauthorizedError(
3637
AuthorizationErrorCode.UNSUPPORTED_CLAIM_TYPE,
@@ -40,6 +41,7 @@ export function ClaimGuard(req: Request, _res: Response, next: NextFunction) {
4041
);
4142
}
4243

44+
console.log("Unsupported claim type:", context.env.CLAIM_TYPE);
4345
next(
4446
new UnauthorizedError(
4547
AuthorizationErrorCode.UNSUPPORTED_CLAIM_TYPE,

0 commit comments

Comments
 (0)