From 25b70a082be3680ed38bb9ed1cdb776238b40031 Mon Sep 17 00:00:00 2001 From: Vin Busquet Date: Tue, 31 Aug 2021 20:10:13 -0300 Subject: [PATCH] fix: verification-link variable with small typo --- .../triggers/CustomMessage/verification-link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amplify-category-auth/provider-utils/awscloudformation/triggers/CustomMessage/verification-link.js b/packages/amplify-category-auth/provider-utils/awscloudformation/triggers/CustomMessage/verification-link.js index 2a1b41765a8..241c43b922f 100644 --- a/packages/amplify-category-auth/provider-utils/awscloudformation/triggers/CustomMessage/verification-link.js +++ b/packages/amplify-category-auth/provider-utils/awscloudformation/triggers/CustomMessage/verification-link.js @@ -18,7 +18,7 @@ exports.handler = async event => { 'sa-east-1', ]; - const seperator = hyphenRegions.includes(region) ? '-' : '.'; + const separator = hyphenRegions.includes(region) ? '-' : '.'; const payload = Buffer.from( JSON.stringify({ @@ -28,7 +28,7 @@ exports.handler = async event => { clientId, }), ).toString('base64'); - const bucketUrl = `http://${resourcePrefix}verificationbucket-${process.env.ENV}.s3-website${seperator}${region}.amazonaws.com`; + const bucketUrl = `http://${resourcePrefix}verificationbucket-${process.env.ENV}.s3-website${separator}${region}.amazonaws.com`; const url = `${bucketUrl}/?data=${payload}&code=${codeParameter}`; const message = `${process.env.EMAILMESSAGE}. \n ${url}`; event.response.smsMessage = message;