We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de3e42 commit c536e08Copy full SHA for c536e08
index.js
@@ -29,8 +29,8 @@ exports.handler = async (event) => {
29
jwtSettings.options
30
);
31
32
- if (!decoded.sub || !Number(decoded.sub)) {
33
- console.log('Missing or invalid sub claim');
+ if (!decoded.sub) {
+ console.log('Missing or invalid sub claim:', decoded.sub);
34
return { isAuthorized: false };
35
}
36
0 commit comments