# How to set Passwordless login to from "code" to "link" in Auth0 Dashboard

**URL:** <https://community.auth0.com/t/how-to-set-passwordless-login-to-from-code-to-link-in-auth0-dashboard/70492>\
**Category:** Get Help\
**Tags:** passwordless, magic-link, login, auth0\
**Created:** [September 29, 2021, 2:26pm UTC](https://community.auth0.com/t/how-to-set-passwordless-login-to-from-code-to-link-in-auth0-dashboard/70492 "2021-09-29T14:26:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danjuma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danjuma/32/27032_2.png) [@danjuma](https://community.auth0.com/u/danjuma)\
**Post date:** [September 29, 2021, 2:26pm UTC](https://community.auth0.com/t/how-to-set-passwordless-login-to-from-code-to-link-in-auth0-dashboard/70492/1 "2021-09-29T14:26:58Z")

</div>

Hi, I have an existing login page all set up with auth0. Whenever a user tries to log in from the app it works as expected ie redirecting and authenticating but a code(OTP) is sent to the user’s email address. However, what I want is to send the user a Link as the [docs](https://auth0.com/docs/connections/passwordless/authentication-factors/email-magic-link).

Please how do I solve this problem?

I have even changed the passwordless template to include `passwordLessMethod: "link" ` NOT WORKING

I am using auth0-react, is there a way I can run the code instead?

```auto
  // Send a link using email
  webAuth.passwordlessStart({
      connection: 'email',
      send: 'link',
      email: 'USER_EMAIL'
    }, function (err,res) {
      // handle errors or continue
    }
  );

```

---

<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:** [September 29, 2021, 7:06pm UTC](https://community.auth0.com/t/how-to-set-passwordless-login-to-from-code-to-link-in-auth0-dashboard/70492/3 "2021-09-29T19:06:34Z")

</div>

Hi @danjuma,

Welcome to the Auth0 Community!

I understand that you are encountering problems with configuring Passwordless to send a link.

After looking very closely at your code snippets, I noticed a very subtle typo, specifically with a capital L in `passwordLessMethod: "link"`   
  
  
Could you please modify your Universal Login Page Passwordless Template with:

```auto
passwordlessMethod: 'link'

```

After making these changes, I’m confident that your Passwordless login will send a link instead of a code.

Please let me know if there are any questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![danjuma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danjuma/32/27032_2.png) [@danjuma](https://community.auth0.com/u/danjuma)\
**Post date:** [September 29, 2021, 8:45pm UTC](https://community.auth0.com/t/how-to-set-passwordless-login-to-from-code-to-link-in-auth0-dashboard/70492/5 "2021-09-29T20:45:24Z")

</div>

Thanks, @rueben.tiow it worked, but I noticed I am not getting the users verified like ie sending a code that the user’s email with a magic link when they click the link it redirects the user to the homepage and not the dashboard as I expected, this behavior worked perfectly with

`passwordlessMethod: 'code' // authenticates and redirects to dashboard`

Do you think I need to setup something from auth0’s dashboard?

---

<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:** [September 29, 2021, 11:28pm UTC](https://community.auth0.com/t/how-to-set-passwordless-login-to-from-code-to-link-in-auth0-dashboard/70492/6 "2021-09-29T23:28:40Z")

</div>

Hi @danjuma,

Thank you for your response.

Did you make sure that your Passwordless Universal Login page has configured the `redirectUrl` option? [https://auth0.com/docs/libraries/lock#passwordless-example](https://auth0.com/docs/libraries/lock#passwordless-example)

Here is an example:

```auto
var lock = new Auth0LockPasswordless(config.clientID, config.auth0Domain, {
  auth: {
    redirectUrl: config.callbackURL,   
    ...
  }
  ...
});

```

Please let me know if this resolves the issue.

Thank you.

---

<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:** [October 14, 2021, 11:28pm UTC](https://community.auth0.com/t/how-to-set-passwordless-login-to-from-code-to-link-in-auth0-dashboard/70492/7 "2021-10-14T23:28:55Z")

</div>

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