Skip to content

Correct the type for challengeAnswer attribute. #356

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

Merged
merged 1 commit into from
Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static class Request extends CognitoUserPoolEvent.Request {
/**
* The answer from the user's response to the challenge.
*/
private Map<String, String> challengeAnswer;
private String challengeAnswer;
/**
* This boolean is populated when PreventUserExistenceErrors is set to ENABLED for your User Pool client
*/
Expand All @@ -81,7 +81,7 @@ public static class Request extends CognitoUserPoolEvent.Request {
@Builder(setterPrefix = "with")
public Request(Map<String, String> userAttributes,
Map<String, String> clientMetadata,
Map<String, String> challengeAnswer,
String challengeAnswer,
Map<String, String> privateChallengeParameters,
boolean userNotFound) {
super(userAttributes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"privateChallengeParameters": {
"secret": "11122233"
},
"challengeAnswer": {
"string": "123xxxx"
},
"challengeAnswer": "123xxxx",
"clientMetadata": {
"exampleMetadataKey": "example metadata value"
},
Expand Down