<@498057949541826571> wondering if you have any ad...
# support-questions-legacy
p
@rp_st wondering if you have any advice for our situation, we want to switch from
emailpassword
auth to
passwordless
with phone. Any tips or advice?
r
Hey @pillar2591
How would you match someone’s input phone number to an existing email?
p
we would do that manually or through a self serve tool
for example, a user would email us from their
emailpassword
account with the number to use for their
passwordless
account
r
right. I see.
Which backend sdk and which version of it are you using?
There are two methods: 1) Use account linking if using node SDK and >= 16.0. Here you can make all the email password users a primary user, and then switch to using passwordless in your app. Users that login will automatically be linked to their existing account. This has the benefit that if you want to switch back to email password later, you can do so easily. However, this is a paid feature. 2) Otherwise, you can loop through all users you have rigth now, and then create a passwordless user using the email. Once the user is created, you can delete the existing email password user for that email, and then do a user ID mapping of the new passwordless user ID with the older email password user ID.
p
using the Python SDK, latest version, and thank you, that makes sense