-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(auth): Added missing UserContextData to Cognito User Pool operation SignUp #13477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good to me, but please hold off on merging until we can discuss (blocking PR). Thank you for the contribution!
const UserContextData = getUserContextData({ | ||
username, | ||
userPoolId, | ||
userPoolClientId, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can we move this directly into line 96? I think getUserContextData
is expressive enough to convey the context there when used directly. Also prefer not to have the PascalCased variable as it easily gets confused with types/interfaces/classes
…extData to inside the parameter list
…ithub.com/armandsyah134/amplify-js into auth/fix-adding-usercontextdata-to-signup
…ata-to-signup Auth/fix adding usercontextdata to signup
3839009
…ata-to-signup Fix unit test for SignUp
Description of changes
UserContextData
inSignUp
call to Cognito User Pools (CUP)UserContextData
is an important property for Sign Up calls, and should be added to theSignUp
operationUserContextData
(e.g. ConfirmSignUp)UserContextData
is already in your API contractIssue #, if available
N/a (will make an issue for this if required
Description of how you validated changes
UserContextData
present in SignUp callChecklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.