SignUp container
The SignUp container provides a form where the user enters the details required to create a new account. The execution of this form can vary, depending on how Commerce is configured:
-
If email confirmations have been enabled, the user account is not activated until the user clicks on the confirmation link that Commerce sends to the user’s email address.
-
If the customer account contains custom attributes, these must be configured to be available to the form. See Customer attribute properties for more information.
Simple container
Section titled “Simple container”A SignUp container can collect minimal information, such as name, email, and password, to create a new account. Alternatively, it can collect additional information, such as addresses, if the addressesData property is passed.
By default, upon a successful registration, the SignUp container renders the SuccessNotification container.
The user is logged on when the isAutoSignInEnabled property is passed.
If the routeRedirectOnSignIn property is passed, the user is redirected to the specified URL after a successful login. Neither the SuccessNotification container nor slots will be rendered.
In this scenario, email confirmation must be disabled.

Registration with email confirmation enabled
Section titled “Registration with email confirmation enabled”If a user creates an account when email confirmation is enabled, a different form is rendered in place of the sign-up form to inform the user about the next steps. Automatic sign-in is not possible if email confirmation is enabled.

SignUp configurations
Section titled “SignUp configurations”The SignUp container provides the following configuration options:
Example
Section titled “Example”The following example redirects the user to the account page if they are already authenticated. If not, the user is redirected first to the login page, then to the account page.
export default async function decorate(block) { const isAuthenticated = !!getCookie('auth_dropin_user_token');
if (isAuthenticated) { window.location.href = '/customer/account'; } else { await authRenderer.render(SignUp, { hideCloseBtnOnEmailConfirmation: true, routeSignIn: () => '/customer/login', routeRedirectOnSignIn: () => '/customer/account', })(block); }}