awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
917 stars 265 forks source link

fix not signed request context in I am auth #711

Open jonny22094 opened 2 years ago

jonny22094 commented 2 years ago

Description of changes: Currently, it's not possible to add for example custom headers to the request because they will not be added to the signature. This PR change formatAsRequest params to instead of the empty object take request context to create a proper signature

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.