From 2f8df940cc16ee3c79a23c05813a06f4416a45db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Lis=C3=A9?= Date: Mon, 7 Oct 2024 16:35:50 -0700 Subject: [PATCH] Update import --- 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 ca3e44d..ef48d30 100644 --- a/handlers/authorizer/index.js +++ b/handlers/authorizer/index.js @@ -4,8 +4,8 @@ const jwt = require('jsonwebtoken'); const { DynamoDBClient } = require('@aws-sdk/client-dynamodb'); const jwkToPem = require('jwk-to-pem'); const crypto = require('crypto'); -const awsjwtverify = require('aws-jwt-verify'); -const verifier = awsjwtverify.create({ +const { CognitoJwtVerifier } = require('aws-jwt-verify'); +const verifier = CognitoJwtVerifier.create({ userPoolId: "ca-central-1_nXF7h0SwT", tokenUse: "access", clientId: process.env.COGNITO_APP_CLIENT_ID,