aws-mobile-appsync-sdk-js icon indicating copy to clipboard operation
aws-mobile-appsync-sdk-js copied to clipboard

fix: headerBasedAuth not updating the headers with new values

Open chrisharrison opened this issue 4 years ago • 3 comments

Issue #, if available:

#666

Description of changes:

Allows the headerBasedAuth function to actually update the headers with the new value.

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

chrisharrison avatar Aug 20 '21 22:08 chrisharrison

This fixes #666

chrisharrison avatar Aug 20 '21 22:08 chrisharrison

This should be applied as a hotfix to aws-appsync-auth-link version 2.0.5

chrisharrison avatar Aug 20 '21 22:08 chrisharrison

The Amplify docs still advises to use this repo when using Apollo Client: https://docs.amplify.aws/lib/graphqlapi/upgrade-guide/q/platform/js/#option-2-upgrade-to-apollo-client-with-appsync-links

Wouldn't it make sense to merged this PR then? Or is there by now an alternative advised approach of how to use Apollo Client with AppSync?

ronnyroeller avatar Aug 28 '23 11:08 ronnyroeller