From e156bef9c5db6dfb5796ce3bdf89dcea3ac5084f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Lis=C3=A9?= Date: Mon, 7 Oct 2024 16:35:15 -0700 Subject: [PATCH] Renaming --- handlers/authorizer/index.js | 4 ++-- package.json | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/handlers/authorizer/index.js b/handlers/authorizer/index.js index 786fdbb..ca3e44d 100644 --- a/handlers/authorizer/index.js +++ b/handlers/authorizer/index.js @@ -5,8 +5,8 @@ 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 = CognitoJwtVerifier.create({ - userPoolId: "", +const verifier = awsjwtverify.create({ + userPoolId: "ca-central-1_nXF7h0SwT", tokenUse: "access", clientId: process.env.COGNITO_APP_CLIENT_ID, }); diff --git a/package.json b/package.json index b618fde..2c031fc 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,7 @@ "description": "Reserve Rec API System", "dependencies": { "@aws-sdk/util-dynamodb": "^3.540.0", - "@opensearch-project/opensearch": "^2.11.0", - "aws-jwt-verify": "^4.0.1", - "axios": "^1.7.7", - "jsonwebtoken": "^9.0.2", - "jwk-to-pem": "^2.0.6", - "winston": "^3.13.1" + "@opensearch-project/opensearch": "^2.11.0" }, "devDependencies": { "@aws-sdk/client-dynamodb": "^3.649.0",