Skip to content

Commit

Permalink
fix: number check
Browse files Browse the repository at this point in the history
  • Loading branch information
g-otn committed Jan 29, 2024
1 parent 0de3e42 commit c536e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

Expand Down

0 comments on commit c536e08

Please sign in to comment.