How to change passwordless from code to magic link?

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 :

is exactly the same as here :

?

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

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

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 and specify the passwordlessMethod: 'link' in your Custom Universal Login Page. See below:

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 useful.

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

Thank you.

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

2 Likes