diff --git a/services/app-api/src/handlers/apollo_gql.ts b/services/app-api/src/handlers/apollo_gql.ts index b40a763e3f..8fda74db01 100644 --- a/services/app-api/src/handlers/apollo_gql.ts +++ b/services/app-api/src/handlers/apollo_gql.ts @@ -62,7 +62,7 @@ function contextForRequestForFetcher(userFetcher: userFromAuthProvider): ({ const requestSpan = anyContext[requestSpanKey] const authProvider = event.requestContext.identity.cognitoAuthenticationProvider - const ipAddress = context.requestContext.identity.sourceIp + const ipAddress = event.requestContext.identity.sourceIp // This handler is shared with the third_party_API_authorizer // when called from the 3rd party authorizer the cognito auth provider // is not valid for instead the authorizer returns a user ID