Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Page updated May 1, 2024

Email customization

By default, Amplify Auth resources are scaffolded with email as the default method for your users to sign in. When you users sign up they receive a verification email to confirm their ownership of the email they specified during sign-up. Emails such as the verification email can be customized with your app's brand identity.

To get started, modify email: true to an object to begin customizing its default behavior:

import { defineAuth } from "@aws-amplify/backend"
export const auth = defineAuth({
loginWith: {
- email: true,
+ email: {
+ verificationEmailStyle: "CODE",
+ verificationEmailSubject: "Welcome to my app!",
+ verificationEmailBody: (createCode) => `Use this code to confirm your account: ${createCode()}`,
+ },