Required two UI logins designs for the single account

Hi,
There are two applications in the single account. Since there is single universal login for two applications, the login page UI design also same. can we able to make two different login screens for the single account. If so, please let us know the posi

1 Like

Hi @aravind.somashekar,

You have a few options.

If you want to do a full custom hosted login page per client you can use the Management API
PATCH /api/v2/clients/{id} endpoint
. You need to set the custom_login_page_on flag to true. Then you can add your own HTML to the custom_login_page value.

The other option is to add logic to the universal login customization page in the Auth0 Dashboard. Changing logo per client_id would look something like this:

var customLogo = '{DEFAULT LOGO URL}';

if(config.clientID === '{EXAMPLE CLIENT ID A}') {
  customLogo = '{LOGO URL A}';
}
else if(config.clientID === '{EXAMPLE CLIENT ID A}' {
  customLogo = '{LOGO URL B}';
}

var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
/// LOCK OPTIONS
  theme: {
    logo: customLogo,
      },
/// MORE LOCK OPTIONS
});

Let me know if this helps.

Thanks,
Dan

1 Like

Glad you were able to figure it out!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.