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

Updated withAPIKey to be synchronous #49

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

cgalvan
Copy link
Contributor

@cgalvan cgalvan commented Nov 5, 2024

Description

Removed async requirement from withAPIKey, since there is no asynchronous action being done in the method. We do need to keep withIdentityPoolId as async because fetching the credentials is an async operation.

Previous logic using await withAPIKey will still function as-is since await on a non-async function will return a Promise that resolves immediately.

Testing

Updated unit tests to test withAPIKey usage in both async and sync calls.

@cgalvan cgalvan requested a review from a team as a code owner November 5, 2024 17:09
@cgalvan cgalvan merged commit 699779f into aws-geospatial:main Nov 5, 2024
1 check passed
@cgalvan cgalvan deleted the MadeAPIKeySync branch November 5, 2024 17:31
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.

4 participants