From 0e4d59818be4e1d14a577aab1c194dcd09c9b863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Lis=C3=A9?= Date: Thu, 3 Oct 2024 08:36:43 -0700 Subject: [PATCH] Adjust function --- handlers/authorizer/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/authorizer/index.js b/handlers/authorizer/index.js index a2737f0..9e1baf1 100644 --- a/handlers/authorizer/index.js +++ b/handlers/authorizer/index.js @@ -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; @@ -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 = {};