Skip to content
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

fix(docs): Update custom pre-sign up handler #1051

Merged
merged 2 commits into from
Nov 9, 2021
Merged
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
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ When prompted to edit the function now, choose "yes" and add the following code
created by the amplify CLI, from [documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html#aws-lambda-triggers-pre-registration-example-2).

```js
exports.handler = (event, context, callback) => {
exports.handler = async event => {
// Confirm the user
event.response.autoConfirmUser = true;

Expand All @@ -271,7 +271,7 @@ exports.handler = (event, context, callback) => {
}

// Return to Amazon Cognito
callback(null, event);
return event;
};
```

Expand Down