# Custom Login / Signup + Buttons with options to login/signup with google / facebook / etcs?

**URL:** <https://community.auth0.com/t/custom-login-signup-buttons-with-options-to-login-signup-with-google-facebook-etcs/53154>\
**Category:** Get Help\
**Tags:** auth0, login\
**Created:** [November 12, 2020, 6:44pm UTC](https://community.auth0.com/t/custom-login-signup-buttons-with-options-to-login-signup-with-google-facebook-etcs/53154 "2020-11-12T18:44:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tech9](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@tech9](https://community.auth0.com/u/tech9)\
**Post date:** [November 12, 2020, 6:44pm UTC](https://community.auth0.com/t/custom-login-signup-buttons-with-options-to-login-signup-with-google-facebook-etcs/53154/1 "2020-11-12T18:44:28Z")

</div>

Hello,

I’m currently implementing a custom LOGIN / SIGN UP form on my React application ( it happens in a modal inside of my app), which will allow users to set their own password, then receive an email, confirm email, etcs.

I have found an example project in here and it seems to be exactly what i need:

> **[GitHub - auth0-samples/auth0-custom-signup-apiv2-sample](https://github.com/auth0-samples/auth0-custom-signup-apiv2-sample)**
>
> Contribute to auth0-samples/auth0-custom-signup-apiv2-sample development by creating an account on GitHub.

In the other hand we also would like to allow users to sign up with SOCIAL / GMAIL / ( and other options as long as they provide the user email ), but i can’t find reference regarding how to add those buttons on my UI and what functions needs to be called in that case.

I believe in this case a Google / Facebook / […] pop up or new tab would show up, as those screens can not be customised right? ( also we wouldn’t want to customise every possible screen anyway, only customising the manual sign up with email/password is enough for now )

Thank you very much for your help.

---

<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:** [November 13, 2020, 5:52pm UTC](https://community.auth0.com/t/custom-login-signup-buttons-with-options-to-login-signup-with-google-facebook-etcs/53154/3 "2020-11-13T17:52:32Z")

</div>

> [@tech9](#):
>
> I’m currently implementing a custom LOGIN / SIGN UP form on my React application ( it happens in a modal inside of my app)

Unless you have a strict requirement for embedded login, I would recommend using redirect-based universal login, as it easier to secure and will take significantly less development time from your side. [We have a react SDK that makes it a breeze.](https://auth0.com/docs/quickstart/spa/react/01-login)

**If you do want to go down the rabbit hole of embedded login, look at this library:**

[https://auth0.com/docs/libraries/auth0js](https://auth0.com/docs/libraries/auth0js)

> [@tech9](#):
>
> I have found an example project in here and it seems to be exactly what i need:

I wouldn’t use that sample. It is 5+ years without an update and is likely not secure.

> [@tech9](#):
>
> In the other hand we also would like to allow users to sign up with SOCIAL / GMAIL / ( and other options as long as they provide the user email ), but i can’t find reference regarding how to add those buttons on my UI and what functions needs to be called in that case.

You can add social with auth0.js. I think you will still have to add the buttons and UI yourself.

> [@tech9](#):
>
> I believe in this case a Google / Facebook / […] pop up or new tab would show up, as those screens can not be customised right?

That is correct, you cannot customize the UI from these social IDPs, they host their login pages. (In fact, you don’t want to customize them. Their standardization is part of why we trust them.)

---

<div class="post-metadata">

**Author:** ![kokonuts](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kokonuts](https://community.auth0.com/u/kokonuts)\
**Post date:** [November 17, 2020, 5:47am UTC](https://community.auth0.com/t/custom-login-signup-buttons-with-options-to-login-signup-with-google-facebook-etcs/53154/4 "2020-11-17T05:47:35Z")

</div>

> [@dan.woda](#):
>
> Unless you have a strict requirement for embedded login, I would recommend using redirect-based universal login, as it easier to secure and will take significantly less development time from your side. [We have a react SDK that makes it a breeze.](https://auth0.com/docs/quickstart/spa/react/01-login)

That sounds interesting, what if i already have a database with users and hashed passwords ( i.e. we got an application using meteor ) ?

How do i setup auth0 to check the passwords using the same encryption on the email ( i believe meteor is sha256 ) and what if a user tries to login with Google or Facebook but they’re already registered?

Also, if the user decides to sign up using email / password ( as opposed to social logins ) can i only allow the login to happen after confirming the email?

Apologies for so many questions, but i’m on the same case as tech9 and the documentation for auth0 is so extensive i’m finding easy to get lost.

Thank you !

---

<div class="post-metadata">

**Author:** ![galonsoulloa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/galonsoulloa/32/13308_2.png) [@galonsoulloa](https://community.auth0.com/u/galonsoulloa)\
**Post date:** [November 17, 2020, 3:29pm UTC](https://community.auth0.com/t/custom-login-signup-buttons-with-options-to-login-signup-with-google-facebook-etcs/53154/5 "2020-11-17T15:29:21Z")

</div>

Hello, sorry I am not a developer, only an entrepeneur trying to improve the look&feel of my Auth0 Login Page.

My question is how can I include “OR” between de Auth0 with email and Social Connectiosn? Please see my [current login page](https://liliapp-pro.eu.auth0.com/login?state=g6Fo2SB0QUIzVjNkZzIyWGt2cklOek13VHhueUtvZUpNX2FvLaN0aWTZIFdLNHQwLWlubmJvTWZveTZqOEduRHZoYi1VYlRwS1Vto2NpZNkgdTVDYTFVbHdBeGhPQTBnQzBTaWpDUFhzdktoOUR2Mmw&client=u5Ca1UlwAxhOA0gC0SijCPXsvKh9Dv2l&protocol=oauth2&redirect_uri=https%3A%2F%2Fweb.theliliapp.com%2Flili-app%2F&audience=LiliappProUserAudience&scope=openid%20profile%20email&response_type=code&response_mode=query&nonce=T0ZuV1VDMmRNeVJkc1BMQk9JWnZIRkZ3dlpINDRtakFhZS5rWEZDWUItdw%3D%3D&code_challenge=RXQcWKHxsM4lKfVtXiSfh43u7rl83BmNbxdVjM_IrFo&code_challenge_method=S256&auth0Client=eyJuYW1lIjoiYXV0aDAtc3BhLWpzIiwidmVyc2lvbiI6IjEuMTAuMCJ9)

---

<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:** [November 17, 2020, 8:29pm UTC](https://community.auth0.com/t/custom-login-signup-buttons-with-options-to-login-signup-with-google-facebook-etcs/53154/6 "2020-11-17T20:29:59Z")

</div>

> [@kokonuts](#):
>
> That sounds interesting, what if i already have a database with users and hashed passwords ( i.e. we got an application using meteor ) ?

You have a couple of options here:

- You can import your users (including password hashes).
  - This option requires some initial migrating development time, but after it is completed there is very little you will have to manage, and you can always export later if needed.

**OR**

- You can point auth0 to your existing database.
  - This requires a paid subscription, and you will have to maintain your database infrastructure and integration, but you wont need to migrate your users and hashes.

> [@kokonuts](#):
>
> How do i setup auth0 to check the passwords using the same encryption on the email ( i believe meteor is sha256 )

This will depend on whether you import your users (yes, we support SHA256) or integrate with a custom database. Here are resources for the two different options.

> **[Technical Strategies for Migrating Users to Auth0](https://auth0.com/blog/technical-strategies-for-migrating-users-to-auth0/)**
>
> Learn strategies for migrating your users from other identity solutions to Auth0

[https://auth0.com/docs/users/references/bulk-import-database-schema-examples#custom-password-hash](https://auth0.com/docs/users/references/bulk-import-database-schema-examples#custom-password-hash)

**OR**

> **[Custom Database Connections](https://auth0.com/docs/authenticate/database-connections/custom-db)**
>
> Learn about authenticating users using your database as an identity provider.

> [@kokonuts](#):
>
> what if a user tries to login with Google or Facebook but they’re already registered?

You can set up account linking. So a verified email from either social provider will be linked.

> **[User Account Linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking)**
>
> Understand how user accounts can be linked in Auth0 from various identity providers.

> [@kokonuts](#):
>
> Also, if the user decides to sign up using email / password ( as opposed to social logins ) can i only allow the login to happen after confirming the email?

You can force email verification in a rule. Essentially they can login, then you can deny access to your app until they are verified. This is a common flow.

---

<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:** [December 2, 2020, 8:30pm UTC](https://community.auth0.com/t/custom-login-signup-buttons-with-options-to-login-signup-with-google-facebook-etcs/53154/7 "2020-12-02T20:30:00Z")

</div>

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