Skip to content

Commit

Permalink
Made the changes requested.
Browse files Browse the repository at this point in the history
javascript/example_code/cognito/lambda-trigger-auth-challenge-create.js
javascriptv3/example_code/cognito/admin-create-user.js
  • Loading branch information
zachjonesnoel committed Sep 29, 2021
1 parent 3d56d33 commit e2313ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports.handler = (event, context, callback) => {
event.response.challengeMetadata = 'CAPTCHA_CHALLENGE';
}

//Return to Amazon Cognito
//Return to Amazon Cognito.
callback(null, event);
}
// snippet-end:[cognito.javascript.lambda-trigger.create-auth-challenge]
13 changes: 0 additions & 13 deletions javascriptv3/example_code/cognito/admin-create-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ admin-create-user.js demonstrates how to create an user from Cognito SDK.
*/

//snippet-sourcedescription:[admin-create-user.js demonstrates demonstrates how to create an user from Cognito SDK.]
//snippet-service:[cognito]
//snippet-keyword:[JavaScript]
//snippet-sourcesyntax:[javascript]
//snippet-keyword:[Code Sample]
//snippet-keyword:[Amazon Cognito]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[2021-09-28]
//snippet-sourceauthor:[zachjonesnoel]

// ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
// https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html#adminCreateUser-property

// snippet-start:[ses.JavaScript.filters.admin-create-user]
// Load the AWS SDK for Node.js.
var AWS = require('aws-sdk');
Expand Down

0 comments on commit e2313ce

Please sign in to comment.