Skip to content

Commit

Permalink
Adjust function
Browse files Browse the repository at this point in the history
  • Loading branch information
marklise committed Oct 3, 2024
1 parent 791ce73 commit 0e4d598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/authorizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function batchQueryWrapper(tableName, key, values) {
return results;
}

async function validateToken(token) {
function validateToken(token) {
const headers = jwt.decode(token, { complete: true }).header;
const kid = headers.kid;

Expand Down Expand Up @@ -180,7 +180,7 @@ async function parseToken(headers, authorization) {
}

// Help function to generate an IAM policy
let generatePolicy = function (principalId, effect, methodArn) {
function generatePolicy(principalId, effect, methodArn) {
logger.debug('principalId', principalId);
let authResponse = {};

Expand Down

0 comments on commit 0e4d598

Please sign in to comment.