Skip to content

Commit

Permalink
Correct the type for challengeAnswer attribute. (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
msailes authored and Alexander Smirnov committed Jul 31, 2023
1 parent d917474 commit 90c7634
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,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 @@ -76,7 +76,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

0 comments on commit 90c7634

Please sign in to comment.