Skip to content

Commit 0d48a9f

Browse files
authored
Merge pull request serverless#316 from juanjoDiaz/fix_auth0_example
Fix auth0 example calling the callback twice
2 parents ac5c75e + 392d32d commit 0d48a9f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

aws-node-auth0-custom-authorizers-api/handler.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ module.exports.auth = (event, context, callback) => {
5656
console.log('catch error. Invalid token', err);
5757
return callback('Unauthorized');
5858
}
59-
60-
// if for any reason you get here...
61-
return callback('Unauthorized');
6259
};
6360

6461
// Public API

0 commit comments

Comments
 (0)