#✅ - Amplify Gen2 Auth VerificationCode custom message in multiple languages

6 messages · Page 1 of 1 (latest)

valid inlet
#

Looking at this doc for auth setup: https://docs.amplify.aws/gen2/build-a-backend/auth/set-up-auth/
amd I see it is possible to customise the message sent out for MFA:

  // multifactor: {
  //   mode: 'OPTIONAL',
  //   sms: {
  //     smsMessage: (code) => `Your verification code is ${code}`,
  //   },
  // },

How can I do the same customization for phoneNumber verification during signUp? Taking into considereation the user language preference as well? Thanks

balmy schooner
#

👋 I believe you will need to use the custom message trigger and set the language based on the requester's locale

valid inlet
#

Any idea if this is supported in Gen2?

valid inlet
#

NVM, was able to do it

south sequoiaBOT
#

✅ - Amplify Gen2 Auth VerificationCode custom message in multiple languages