Skip to content

Commit

Permalink
Update import
Browse files Browse the repository at this point in the history
  • Loading branch information
marklise committed Oct 7, 2024
1 parent e156bef commit 2f8df94
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 @@ -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,
Expand Down

0 comments on commit 2f8df94

Please sign in to comment.