# Custom auth0 Log In/Sign Up flow

**URL:** <https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685>\
**Category:** Get Help\
**Created:** [August 8, 2020, 3:17am UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685 "2020-08-08T03:17:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmwill934](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gmwill934/32/22277_2.png) [@gmwill934](https://community.auth0.com/u/gmwill934)\
**Post date:** [August 8, 2020, 3:17am UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/1 "2020-08-08T03:17:28Z")

</div>

Hello

I was wondering how can I implement User Signup and User Login directly from my login/register forms.  
( **for example** )

 ![Screen Shot 2020-08-07 at 16.26.55](https://global.discourse-cdn.com/auth0/original/3X/8/b/8bb5266419e501b511901f6ad23379f39bc117cb.png)

The Sign Up flow is as follows:  
User inputs the following:

- username
- email
- password
- confirm password

I take that payload as an object and send it somewhere with some API to auth0 to register the user, next an email will be sent for email verification. At that points in time the user will already be able to login.

The Log In flow is as follows:  
User inputs the following:

- username or email
- password

I take that payload as an object and send it somewhere with some API to auth0 to login the user, a JWT will be returned.

I have searched the auth0 documentation but haven’t found a reference or maybe i just passed right through it.

I am not asking for someone to do my work.. I’m just asking for a kick to the right direction and documentation.

Thanks for the help/references!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 10, 2020, 7:59pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/3 "2020-08-10T19:59:09Z")

</div>

Hi @gmwill934,

Check out the resource owner password flow:

> **[Resource Owner Password Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow)**
>
> Learn how the Resource Owner Password flow works and why you should use it for highly-trusted applications.

We don’t typically recommend it right off the bat because it requires an application to handle the user’s password, but it will do what you are describing.

This will allow you to directly exchange a email/pw pair for a token.

In order to sign up a user, you can use the signup endpoint:

[https://auth0.com/docs/api/authentication#signup](https://auth0.com/docs/api/authentication#signup)

---

<div class="post-metadata">

**Author:** ![gmwill934](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gmwill934/32/22277_2.png) [@gmwill934](https://community.auth0.com/u/gmwill934)\
**Post date:** [August 11, 2020, 4:58pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/4 "2020-08-11T16:58:28Z")

</div>

Thanks @dan.woda !!

I see that the **signup** endpoint ( `/dbconnections/signup`) for the Authentication API is only available for enterprise plans, so I’ll have to work out another solution.

What about a login/signup ‘pop up widget’ that I can customize 100% for my brand.

What documentation should I be looking to?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 11, 2020, 5:02pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/5 "2020-08-11T17:02:58Z")

</div>

@gmwill934,

> [@gmwill934](#):
>
> I see that the **signup** endpoint ( `/dbconnections/signup` ) for the Authentication API is only available for enterprise plans, so I’ll have to work out another solution.

Can you tell me where you are seeing this? I don’t remember this being the case, but things do change on a rare occasion.

---

<div class="post-metadata">

**Author:** ![gmwill934](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gmwill934/32/22277_2.png) [@gmwill934](https://community.auth0.com/u/gmwill934)\
**Post date:** [August 11, 2020, 5:15pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/6 "2020-08-11T17:15:55Z")

</div>

here it is.

[https://auth0.com/docs/api/authentication?\_ga=2.162488504.526622130.1597164910-99920948.1596644120#signup](https://auth0.com/docs/api/authentication?_ga=2.162488504.526622130.1597164910-99920948.1596644120#signup)

it says ‘`This endpoint only works for database connections.`’

 ![Screen Shot 2020-08-11 at 12.13.10](https://global.discourse-cdn.com/auth0/original/3X/f/e/fed774f39baaf292c9dae64bfc34d3d612c8378a.png)

But… maybe I am wrong and I am confusing myself with the Custom Database option? (which is only available for enterprise plans)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 11, 2020, 5:27pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/7 "2020-08-11T17:27:23Z")

</div>

Ah yes, that is if you are hosting your own DB. If you are using an auth0 DB connection then you should be able to use the signup endpoint at any subscription tier, including free.

---

<div class="post-metadata">

**Author:** ![gmwill934](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gmwill934/32/22277_2.png) [@gmwill934](https://community.auth0.com/u/gmwill934)\
**Post date:** [August 11, 2020, 5:42pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/8 "2020-08-11T17:42:50Z")

</div>

Thanks! Just one more question @dan.woda 🙂

So about my second option =\>

What about a login/signup ‘pop up widget’ that I can customize 100% for my brand.

What documentation should I be looking to?

Where can I find documentation for that, i’d like to have two options.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 11, 2020, 7:00pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/9 "2020-08-11T19:00:14Z")

</div>

> [@gmwill934](#):
>
> What about a login/signup ‘pop up widget’ that I can customize 100% for my brand.
> 
> What documentation should I be looking to?
> 
> Where can I find documentation for that, i’d like to have two options.

You can customize the Auth0 hosted login page to match your site’s UI. I would recommend this over the resource owner password grant (sending a username/pw via API).

Checkout the doc for Classic UL:

> **[Customize Classic Universal Login Pages](https://auth0.com/docs/customize/universal-login-pages/customization-classic)**
>
> Learn how to customize the login page for the Classic Universal Login experience.

If you go to your dashboard → _universal login → login → default templates → custom login form_ you can customize the html and css there.

---

<div class="post-metadata">

**Author:** ![gmwill934](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gmwill934/32/22277_2.png) [@gmwill934](https://community.auth0.com/u/gmwill934)\
**Post date:** [August 11, 2020, 7:10pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/10 "2020-08-11T19:10:56Z")

</div>

@dan.woda you’ve been the best. thank you so much!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 11, 2020, 7:52pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/11 "2020-08-11T19:52:41Z")

</div>

Please let us know if you have any other questions!

---

<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:** [August 26, 2020, 7:57pm UTC](https://community.auth0.com/t/custom-auth0-log-in-sign-up-flow/47685/12 "2020-08-26T19:57:07Z")

</div>

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