# Universal Login with custom UI

**URL:** <https://community.auth0.com/t/universal-login-with-custom-ui/131226>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [April 4, 2024, 2:59pm UTC](https://community.auth0.com/t/universal-login-with-custom-ui/131226 "2024-04-04T14:59:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan6](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stefan6/32/51003_2.png) [@stefan6](https://community.auth0.com/u/stefan6)\
**Post date:** [April 4, 2024, 2:59pm UTC](https://community.auth0.com/t/universal-login-with-custom-ui/131226/1 "2024-04-04T14:59:42Z")

</div>

Hi Auth0 Community,

I’ve recently started using Auth0 in my project with Universal Login and it’s working great.

However, one of our new requirements is to customise the login/signup experience in multiple steps and remove the redirect to Auth0 (I’ve attached a few placeholders at the end of the post but basically it’s username validation → password creation → email verification → success).

As I currently understand, there are three options available:

1. Customise the Universal Login page from the Auth0 dashboard using html/css **(won’t work for my use case since I have multiple javascript checks I need to do, as well as involves redirecting)**
2. Use [embedded login](https://auth0.com/docs/authenticate/login/universal-vs-embedded-login) **(security issues and higher upkeep)**
3. Use [Classic Universal Login](https://auth0.com/docs/authenticate/login/auth0-universal-login/universal-login-vs-classic-login/classic-experience) **(no longer maintained)**

I was wondering what the best practice and recommendation for this use case is.

Looking forward to your feedback,  
Stefan

Placeholders:

 ![Untitled](https://global.discourse-cdn.com/auth0/original/3X/d/b/dbd01dac04c09ec774136cde0aac74cfddca2f38.jpeg) ![Untitled (1)](https://global.discourse-cdn.com/auth0/original/3X/4/f/4f15b78ae066f6e12cf278a3140d0fd6314ee7f8.jpeg) ![Untitled (2)](https://global.discourse-cdn.com/auth0/original/3X/f/7/f7b40de548a9c946f52a541b32ff608345acf126.jpeg)

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 8, 2024, 10:06pm UTC](https://community.auth0.com/t/universal-login-with-custom-ui/131226/3 "2024-04-08T22:06:44Z")

</div>

Hey there @stefan6 welcome to the community!

> [@stefan6](#):
>
> However, one of our new requirements is to customise the login/signup experience in multiple steps and remove the redirect to Auth0 (I’ve attached a few placeholders at the end of the post but basically it’s username validation → password creation → email verification → success).

With the requirement of _not_ redirecting to Auth0, your only option is an embedded approach. Good to know you are aware of the potential pitfalls there - Universal Login is strongly encouraged over embedded.

---

<div class="post-metadata">

**Author:** ![stefan6](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stefan6/32/51003_2.png) [@stefan6](https://community.auth0.com/u/stefan6)\
**Post date:** [April 10, 2024, 7:33am UTC](https://community.auth0.com/t/universal-login-with-custom-ui/131226/4 "2024-04-10T07:33:06Z")

</div>

Great, thanks for the reply. I had a follow up, Is there any guidance or example project of embedded login available? Could not find any examples

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 11, 2024, 1:12am UTC](https://community.auth0.com/t/universal-login-with-custom-ui/131226/5 "2024-04-11T01:12:49Z")

</div>

No problem, happy to help where I can!

There unfortunately isn’t much in the way of samples 😕 Which technology/framework are you using client side? Happy to take a look and see what I come up with.

---

<div class="post-metadata">

**Author:** ![stefan6](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stefan6/32/51003_2.png) [@stefan6](https://community.auth0.com/u/stefan6)\
**Post date:** [April 11, 2024, 9:38am UTC](https://community.auth0.com/t/universal-login-with-custom-ui/131226/6 "2024-04-11T09:38:06Z")

</div>

Thank you so much Ty that would be super helpful!

We are trying to implement it in Next.Js with `next-auth`, however using the `next-auth` framework is not a strong requirement for us. Any sample code would be of great help!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 11, 2024, 9:46pm UTC](https://community.auth0.com/t/universal-login-with-custom-ui/131226/7 "2024-04-11T21:46:29Z")

</div>

Happ to help where I can!

I think your best option will be to use [Auth0.js](https://auth0.com/docs/libraries/auth0js) which is our JS library for embedded login - I can’t really speak to the feasibility of implementing it with NextJS, but the page linked above does include an example of usage.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 25, 2024, 9:46pm UTC](https://community.auth0.com/t/universal-login-with-custom-ui/131226/8 "2024-04-25T21:46:50Z")

</div>

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