# Switching between password and passwordless flows seamlessly

**URL:** <https://community.auth0.com/t/switching-between-password-and-passwordless-flows-seamlessly/189287>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [July 16, 2025, 9:41pm UTC](https://community.auth0.com/t/switching-between-password-and-passwordless-flows-seamlessly/189287 "2025-07-16T21:41:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmatatall](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nmatatall/32/74528_2.png) [@nmatatall](https://community.auth0.com/u/nmatatall)\
**Post date:** [July 16, 2025, 9:41pm UTC](https://community.auth0.com/t/switching-between-password-and-passwordless-flows-seamlessly/189287/1 "2025-07-16T21:41:47Z")

</div>

**Background**

We are in the process of migrating our existing Auth rails stack to Auth0 using omniauth-auth0. Our existing stack allows anyone to login with a password, OTP via email, or google. Our existing stack allows any user to switch freely between the options. Most people stick to one option, but any option is valid.

**Account linking**

Because we want all three connections to refer to the same user, we have set up account linking so these three identities are one.

**The problem**

If we want to support passwordless users, we have to specify that as the `connection` parameter. But if a user wants to change their mind and sign in differently, things get clunky.

**What we tried**

We added a button to one of the partials in our universal login template. This button called back to our application which would then send the user through the flow using “email” as the connection (yes, we’re aware of the risk of vulnerability here) and passing any email entered as the login\_hint.

That works well… except when we send the user to the login screen with the “email” connection, our button to switch to email is still there.

And if the user doesn’t enter an email, we don’t have a login hint so we’re back to the same screen. If we use a “space” for the login hint, we’re sent to the code entry screen but clicking “edit” for the obviously wrong email sends you back to the same place as well. And there’s no option to switch to password.

**What would solve all of our problems**

Being able to detect which connection was in use would allow us to hide/show buttons on the form conditionally.

**In a perfect world**

This would be built into Auth0 itself to avoid bouncing between different systems. Our current implementation just adds/removes fields based on the user’s actions.

**What we’re also considering**

We could have the buttons to “choose your own adventure” starting from our application.

> That gets a little clunky with google auth since they have to click a button to get to an Auth0 page to click another button if we want to stop supporting it locally/enable SSO functionality.

This turned out to not be true. Specifying just google-oauth2 had a streamlined experience.

---

<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:** [July 23, 2025, 1:20pm UTC](https://community.auth0.com/t/switching-between-password-and-passwordless-flows-seamlessly/189287/3 "2025-07-23T13:20:10Z")

</div>

Hi @nmatatall,

Apologies for the delayed response.

The email-password and passwordless authentication methods are both different Database Connections. At the time, there is no implicit way of choosing what Database Connection to use. If you think that this is a feature you would like to be implemented, you can go to [Product Feedback - Auth0 Community](https://community.auth0.com/c/feedback) and write a feature request, or find a feature request asking for this and vote for it.

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:** [August 6, 2025, 1:20pm UTC](https://community.auth0.com/t/switching-between-password-and-passwordless-flows-seamlessly/189287/4 "2025-08-06T13:20:47Z")

</div>

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