Skip to content

Commit

Permalink
fix: auth context & auth authorizer mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi8094 committed Dec 14, 2022
1 parent 613a7df commit 5f3091b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class LambdaProxyIntegrationEventV2 {
{}

// AWS adds the lambda key to the auth context object
const enhancedAuthContext = { lambda: authContext }
const lambdaAuthContext = { lambda: authContext }

let authAuthorizer

Expand Down Expand Up @@ -156,8 +156,8 @@ export default class LambdaProxyIntegrationEventV2 {
accountId: 'offlineContext_accountId',
apiId: 'offlineContext_apiId',
authorizer:
enhancedAuthContext ||
assign(enhancedAuthContext, {
authAuthorizer ||
assign(lambdaAuthContext, {
jwt: {
claims,
scopes,
Expand Down

0 comments on commit 5f3091b

Please sign in to comment.