Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(awsmobileclient): Makes fetch aws credentials serial with the rest of the calls #4202

Merged
merged 3 commits into from
Jul 7, 2022

Conversation

royjit
Copy link
Contributor

@royjit royjit commented Jul 1, 2022

Issue #, if available: aws-amplify/amplify-swift#1822

Description of changes: Fetching AWSCredentials call just after signIn is causing multiple thread to cause issue in the underlying CognitoSDK. This PR is to mitigate the issue by queueing the getCredentials call along with other calls. So all api invocation to the underlying CognitoSDK for fetching credentials will be queued.

Check points:

  • Added new tests to cover change, if needed
  • All unit tests pass
  • All integration tests pass
  • Updated CHANGELOG.md
  • Documentation update for the change if required
  • PR title conforms to conventional commit style

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Member

@harsh62 harsh62 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@royjit royjit merged commit eec5a59 into main Jul 7, 2022
@royjit royjit deleted the royjit.fixawsqueu branch July 7, 2022 22:46
samkudr pushed a commit to samkudr/aws-sdk-ios that referenced this pull request Sep 26, 2022
gabek pushed a commit to KeepSafe/aws-sdk-ios that referenced this pull request Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants