# How to change passwordless from code to magic link?

**URL:** <https://community.auth0.com/t/how-to-change-passwordless-from-code-to-magic-link/81695>\
**Category:** Get Help\
**Created:** [April 13, 2022, 3:31pm UTC](https://community.auth0.com/t/how-to-change-passwordless-from-code-to-magic-link/81695 "2022-04-13T15:31:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nc14](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nc14/32/33226_2.png) [@nc14](https://community.auth0.com/u/nc14)\
**Post date:** [April 13, 2022, 3:31pm UTC](https://community.auth0.com/t/how-to-change-passwordless-from-code-to-magic-link/81695/1 "2022-04-13T15:31:23Z")

</div>

I’ve enabled passwordless login, but can’t see how to change it from using a code to using a magic link.

I’m pretty sure, unless I’m missing something the docs page here :

> **[Passwordless Authentication with Magic Links](https://auth0.com/docs/authenticate/passwordless/authentication-methods/email-magic-link)**
>
> Learn how to use Passwordless connections with the magic link authentication factor.

is exactly the same as here :

> **[Passwordless Authentication with Email](https://auth0.com/docs/authenticate/passwordless/authentication-methods/email-otp)**
>
> Learn how how to use Passwordless connections with the email authentication factor.

?

which is exactly the same problem this guy was having on this question…

> [@How to set up Passwordless email magic link](https://community.auth0.com/t/how-to-set-up-passwordless-email-magic-link/73502/2):
>
> Hey there! Here’s a step by step guide on how to do it:

the documentation makes no sense as it doesn’t actually include the steps to change between magic link or code

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 13, 2022, 8:38pm UTC](https://community.auth0.com/t/how-to-change-passwordless-from-code-to-magic-link/81695/3 "2022-04-13T20:38:44Z")

</div>

Hi @nc14,

Thanks for reaching out to the Auth0 Community!

I understand that you would like to change your Passwordless Email from Code to Magic Link.

To do so, you will need to specify the `passwordlessMethod: 'link'` in your Custom Universal Login Page.

To do so, you will need to navigate to your _[Auth0 Dashboard \> Branding \> Universal Login \> Login](https://manage.auth0.com/#/login_settings)_ and specify the `passwordlessMethod: 'link'` in your Custom Universal Login Page. See below:

```auto
var lock = new Auth0LockPasswordless(config.clientID, config.auth0Domain, {
  passwordlessMethod: 'link',
 //...code redacted for brevity
});

```

After doing so, your users can log in using Passwordless Email with Magic Link.

Lastly, you may find our [Lock Passwordless Options](https://auth0.com/docs/libraries/lock#passwordless-options) useful.

Please let me know if there’s anything else I can do to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![nc14](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nc14/32/33226_2.png) [@nc14](https://community.auth0.com/u/nc14)\
**Post date:** [April 13, 2022, 8:52pm UTC](https://community.auth0.com/t/how-to-change-passwordless-from-code-to-magic-link/81695/4 "2022-04-13T20:52:02Z")

</div>

thank you this is great - you should definitely add this to the doc page!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 5:24pm UTC](https://community.auth0.com/t/how-to-change-passwordless-from-code-to-magic-link/81695/6 "2022-12-21T17:24:55Z")

</div>


