Closed brtrvn closed 2 years ago
Looks like there may be a typo in the README for the API Gateway Lambda Authorizer examples. We're pulling the JWT token string out of the request as accessToken but then passing jwt to the verifier.
accessToken
jwt
const accessToken = event.authorizationToken ... const accessToken = event.headers["authorization"] .... payload = await jwtVerifier.verify(jwt);
https://github.com/awslabs/aws-jwt-verify#api-gateway-lambda-authorizer---rest
Thank you for raising this issue, we will shortly fix this error in the readme file.
Looks like there may be a typo in the README for the API Gateway Lambda Authorizer examples. We're pulling the JWT token string out of the request as
accessToken
but then passingjwt
to the verifier.const accessToken = event.authorizationToken ... const accessToken = event.headers["authorization"] .... payload = await jwtVerifier.verify(jwt);
https://github.com/awslabs/aws-jwt-verify#api-gateway-lambda-authorizer---rest