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:
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)
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.
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.
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!
I think your best option will be to use Auth0.js 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.