Skip to content

Commit a3c0876

Browse files
committed
adding logging to jwtUtils
1 parent 0a82c25 commit a3c0876

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/jwtUtils.ts

+8
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ export const validateAndGetAdminAPIUser = async (
7171
);
7272
}
7373
try {
74+
console.log('listing public keys');
75+
for (let key in publicKeys) {
76+
const obj = publicKeys[key];
77+
console.log(`${key}: ${obj}`);
78+
}
79+
80+
console.log(`decoded.header.kid: ${decoded.header.kid}`);
81+
console.log(`config.auth.defaultKid: ${config.auth.defaultKid}`);
7482
jwt.verify(
7583
rawJwtToken,
7684
publicKeys[decoded.header.kid || config.auth.defaultKid],

0 commit comments

Comments
 (0)