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(core): assign the correct keys for Apple and Amazon providers #13369

Closed
wants to merge 1 commit into from

Conversation

israx
Copy link
Member

@israx israx commented May 13, 2024

Description of changes

Currently there is a key miss match present in the Amazon and Apple social providers generated by amplifyOutputs. This PR matches the returned keys in the parseAmplifyOutputs helper.

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

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

@israx israx requested review from a team as code owners May 13, 2024 18:21
@@ -22,7 +22,7 @@
"responseType": "token"
},
"aws_cognito_verification_mechanisms": ["EMAIL"],
"aws_cognito_social_providers": ["FACEBOOK", "APPLE", "GOOGLE"],
"aws_cognito_social_providers": ["FACEBOOK", "APPLE", "GOOGLE", "AMAZON"],
Copy link
Member

Choose a reason for hiding this comment

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

wouldnt this be LOGIN_WITH_AMAZON for gen1 cases?

Copy link
Member

@calebpollman calebpollman left a comment

Choose a reason for hiding this comment

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

Approach makes sense to me. Somewhat concerned over the usage of hand rolled mock output files, is there an approach we can take in testing that ensures the contract between the outputs and the unit tests?

@@ -7,7 +7,7 @@
"user_pool_client_id": "mock-cup-client-id",
"identity_pool_id": "mock-idp-id",
"oauth": {
"identity_providers": ["FACEBOOK", "SIGN_IN_WITH_APPLE", "GOOGLE"],
"identity_providers": ["FACEBOOK", "APPLE", "GOOGLE", "AMAZON"],
Copy link
Member

Choose a reason for hiding this comment

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

How are we guaranteeing this mock has the correct output from defineAuth?

@israx israx closed this May 13, 2024
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.

3 participants