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(CognitoAuth-useSigv4Client): BREAKING CHANGE - Update the useSigv4Client to be a callback #884

Merged
merged 1 commit into from
May 10, 2023

Conversation

jessieweiyi
Copy link
Contributor

@jessieweiyi jessieweiyi commented May 10, 2023

Issue #, if available:

Description of changes:

This PR is to update the useSigv4Client to be a async callback not much data needs to be kept in the state. And consumers can use try-catch block to handle both initialization errors or network call errors.

This PR is also adding two utilities function into CognitoAuthContext: getAuthenticatedUserAttributes and getAuthenticatedUserSession

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

@jessieweiyi jessieweiyi requested a review from agdimech May 10, 2023 01:02
@jessieweiyi jessieweiyi changed the title fix(CognitoAuth): Update the useSigv4Client to be a callback fix(CognitoAuth): BREAKING CHANGE - Update the useSigv4Client to be a callback May 10, 2023
Copy link
Member

@cogwirrel cogwirrel left a comment

Choose a reason for hiding this comment

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

Much neater, nice!

@jessieweiyi jessieweiyi changed the title fix(CognitoAuth): BREAKING CHANGE - Update the useSigv4Client to be a callback fix(CognitoAuth-useSigv4Client): BREAKING CHANGE - Update the useSigv4Client to be a callback May 10, 2023
@jessieweiyi jessieweiyi merged commit 2140022 into main May 10, 2023
@jessieweiyi jessieweiyi deleted the fix/sigv4client branch May 10, 2023 23:35
@aws-prototyping-bot
Copy link
Collaborator

🎉 This PR is included in version @aws-northstar/ui-v1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants