Gen 2: Using custom lambda data auth unsupported in Swift #910
Labels
Gen 2
pending-triage
Issues that need further discussion to determine
transferred
Issue has been transferred from another Amplify repository
Environment information
Describe the bug
I created a custom data query authorized with a custom lambda following https://docs.amplify.aws/swift/build-a-backend/data/customize-authz/custom-data-access-patterns/. When I try to use this query from my client using the lambda authorizer, I get this client error:
when generating the Swift models with
npx ampx generate graphql-client-code
, I get this warning that may be related:I suspect custom lambda data auth is unsupported in Swift, but I'm creating this issue in amplify-backend in case this is a general Amplify Gen 2 issue. I checked the logs of my authorization lambda, and there are non which means my app is not calling the authorization lambda even though I set the authorization mode to lambda.
Reproduction steps
This is my data backend:
And this is my frontend:
The text was updated successfully, but these errors were encountered: