diff --git a/index.js b/index.js index 52ad21d..62fb4c6 100644 --- a/index.js +++ b/index.js @@ -29,8 +29,8 @@ exports.handler = async (event) => { jwtSettings.options ); - if (!decoded.sub || !Number(decoded.sub)) { - console.log('Missing or invalid sub claim'); + if (!decoded.sub) { + console.log('Missing or invalid sub claim:', decoded.sub); return { isAuthorized: false }; }