Auth0 Home Blog Docs

Using Custom Login UI with Next.js

Hi all!

I’m currently moving my app from Gatsby to Next.js, and have tried to implement login using both this experimental SDK and this guide using the passport method. My question is - how would I be able to use a custom UI with either of these methods? Currently, with Gatsby, I’ve implemented a passwordless login flow with custom UI and would like to replicate this experience on Next, while keeping the user on the backend (as outlined in method 2 in this article

Any pointers would be really helpful!

Hi @jshli,

Welcome to the Auth0 Community Forum!

I think this should be possible. I have a clarifying question I would like to ask about before we move forward; what do you mean by keeping the user on the backend? Are you referring to the Next.js Serverless Deployment Model section of the article?

Let me know.

Thanks,
Dan