Skip to content

Commit 90c7634

Browse files
msailesAlexander Smirnov
authored and
Alexander Smirnov
committed
Correct the type for challengeAnswer attribute. (#356)
1 parent d917474 commit 90c7634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolVerifyAuthChallengeResponseEvent.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static class Request extends CognitoUserPoolEvent.Request {
6767
/**
6868
* The answer from the user's response to the challenge.
6969
*/
70-
private Map<String, String> challengeAnswer;
70+
private String challengeAnswer;
7171
/**
7272
* This boolean is populated when PreventUserExistenceErrors is set to ENABLED for your User Pool client
7373
*/
@@ -76,7 +76,7 @@ public static class Request extends CognitoUserPoolEvent.Request {
7676
@Builder(setterPrefix = "with")
7777
public Request(Map<String, String> userAttributes,
7878
Map<String, String> clientMetadata,
79-
Map<String, String> challengeAnswer,
79+
String challengeAnswer,
8080
Map<String, String> privateChallengeParameters,
8181
boolean userNotFound) {
8282
super(userAttributes);

0 commit comments

Comments
 (0)