Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Cognito Lambda event handler
Browse files Browse the repository at this point in the history
AMZ-brandon committed Jan 31, 2025
1 parent e2e5501 commit a108cf4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

// snippet-start:[cognito.javascript.lambda-trigger.pre-sign-up-auto-confirm]
exports.handler = (event, context, callback) => {
export const handler = async (event, context, callback) => {
// Set the user pool autoConfirmUser flag after validating the email domain
event.response.autoConfirmUser = false;

0 comments on commit a108cf4

Please sign in to comment.