Add definition for AWS Lambda Cognito User Pool event: request.usernameParameter (#16998)

* request.usernameParameter

* usernameParameter test
This commit is contained in:
Simon Males
2017-06-07 02:18:42 +02:00
committed by Mohamed Hegazy
parent bf3471c59d
commit 501ea7986b
2 changed files with 2 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ str = cognitoUserPoolEvent.callerContext.clientId;
str = cognitoUserPoolEvent.request.userAttributes["email"];
str = cognitoUserPoolEvent.request.validationData["k1"];
str = cognitoUserPoolEvent.request.codeParameter;
str = cognitoUserPoolEvent.request.usernameParameter;
b = cognitoUserPoolEvent.request.newDeviceUsed;
cognitoUserPoolEvent.request.session[0].challengeName === "CUSTOM_CHALLENGE";
cognitoUserPoolEvent.request.session[0].challengeName === "PASSWORD_VERIFIER";

View File

@@ -142,6 +142,7 @@ interface CognitoUserPoolEvent {
userAttributes: {[key: string]: string};
validationData?: {[key: string]: string};
codeParameter?: string;
usernameParameter?: string;
newDeviceUsed?: boolean;
session?: {
challengeName: "CUSTOM_CHALLENGE" | "PASSWORD_VERIFIER" | "SMS_MFA" | "DEVICE_SRP_AUTH" | "DEVICE_PASSWORD_VERIFIER" | "ADMIN_NO_SRP_AUTH";