Is there somewhere you can go to look at what a correct Amplify Configure should look like and what the possible options are? Trying to migrate from gen1 to gen2 and I am just not seeing anything out there. So it is a lot of trial and error to get things working correctly. I think I figured out the Auth stuff, but am now stuck on the API Gateway configuration portion. When I go to the URL that mentions Gen2 for Gen1 customers, it doesn't list any helpful information. I have a mix of gen2 and gen1 now and it looks like this, but the API Gateway stuff is not working.
#Amplify configure documentation
7 messages · Page 1 of 1 (latest)
👋 what error are you currently getting with this setup?
are you primarily working/developing your gen2 backend at this point?
Hey @mellow hinge - I am able to log in now into Cognito. The API Gateway seems to be an issue now, but only in that it is not adding a custom auth header anymore like gen1 did. Any ideas. This is my current working Amplify Config:
Based on the docs here (https://docs.amplify.aws/react/build-a-backend/add-aws-services/rest-api/customize-authz/) it looks like I should be able to do this and it work, but I get a 401 Unauthorized on the endpoints.
👋 in your browser's devtools, are you seeing the token in the request's auth header?
No, I do not see it. I can see it if I add it to the individual API call but not if it is configured at this level globally