# Customization to authenticate with email and password or a one time password

**URL:** <https://community.auth0.com/t/customization-to-authenticate-with-email-and-password-or-a-one-time-password/186368>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [May 6, 2025, 12:19pm UTC](https://community.auth0.com/t/customization-to-authenticate-with-email-and-password-or-a-one-time-password/186368 "2025-05-06T12:19:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cre1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cre1/32/74617_2.png) [@cre1](https://community.auth0.com/u/cre1)\
**Post date:** [May 6, 2025, 12:19pm UTC](https://community.auth0.com/t/customization-to-authenticate-with-email-and-password-or-a-one-time-password/186368/1 "2025-05-06T12:19:35Z")

</div>

How can I create an authentication flow that allows the user to log in with either an email and password OR a one time password to their email? Something very similar to offering email and password OR google / social authentication but in this case an OTP.

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [May 6, 2025, 2:29pm UTC](https://community.auth0.com/t/customization-to-authenticate-with-email-and-password-or-a-one-time-password/186368/3 "2025-05-06T14:29:33Z")

</div>

Hi @cre1,

Welcome to the Auth0 Community!

As mentioned in this post, you will need to create two different `/authorize` links for your users, one sending them to an email/password connection and the other one to a passwordless connection if you want to support both sign-in methods:

> [@Authentication Profile: Routing of password vs passwordless users with Identifier First profile](https://community.auth0.com/t/authentication-profile-routing-of-password-vs-passwordless-users-with-identifier-first-profile/185520/3):
>
> Hi @ampossardt, There is no real way for the system to let you know ahead of time if you are going to use the email with a username/password connection or an email passwordless connection. If there is a database connection in place for your application, that one will always be the default. If no database connection has been setup but a passwordless connection has, then that one will be used. This is done for security reasons. If you want to use both, you’ll have to create two /authorize endpoi…

If you have any other questions, feel free to reach out.

Have a good one,  
Vlad

---

<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:** [May 20, 2025, 2:29pm UTC](https://community.auth0.com/t/customization-to-authenticate-with-email-and-password-or-a-one-time-password/186368/4 "2025-05-20T14:29:50Z")

</div>

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