# Auth0 passwordless login by email link is failed

**URL:** <https://community.auth0.com/t/auth0-passwordless-login-by-email-link-is-failed/70749>\
**Category:** Get Help\
**Tags:** lock, login, auth0\
**Created:** [October 4, 2021, 12:14pm UTC](https://community.auth0.com/t/auth0-passwordless-login-by-email-link-is-failed/70749 "2021-10-04T12:14:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TommyLee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tommylee/32/32113_2.png) [@TommyLee](https://community.auth0.com/u/TommyLee)\
**Post date:** [October 4, 2021, 12:14pm UTC](https://community.auth0.com/t/auth0-passwordless-login-by-email-link-is-failed/70749/1 "2021-10-04T12:14:36Z")

</div>

I am suffering from the **passwordless** login of the auth0 authentification now.  
I am implementing passwordless(magic link) login by email(or link)(no code).  
After submitting using email, I received the verification email on Gmail and pressed the link button but it doesn’t well.!  
I think, redirect URL setting is in problem.  
I need the help urgently. 😟

 ![auth0](https://global.discourse-cdn.com/auth0/original/3X/b/b/bb83080d1a00de68268bace5572537c6dc0c9540.png)  
 ![login4](https://global.discourse-cdn.com/auth0/original/3X/9/0/90ced0615fde51def42e622a16fd899a3fbdeadb.png)  
 ![login5](https://global.discourse-cdn.com/auth0/original/3X/2/f/2f9b85a1072de21704804e42b6d38fa009c8fa13.png)

---

<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:** [October 8, 2021, 8:13pm UTC](https://community.auth0.com/t/auth0-passwordless-login-by-email-link-is-failed/70749/3 "2021-10-08T20:13:43Z")

</div>

Hi @TommyLee,

Welcome to the Auth0 Community!

I understand that you are encountering issues with Passwordless Login.

First, could you please try using the default **Lock (passwordless)** template and then including the `redirect_uri` parameter in your authorization request? Then seeing if you are still encountering this issue?

By default, the Auth0LockPasswordless template already defines the behavior for redirecting your application to your **Callback URL** defined in your applications settings.  
Example in Lock:

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

```

Example auth request:

```auto
GET https://{{YOUR_DOMAIN}}.auth0.com/authorize?
    response_type=code&
    client_id=clientID&
    redirect_uri=https://{{YOUR_DOMAIN}}.auth0.com/callback&
    scope=SCOPE&
    audience=API_AUDIENCE&
    state=STATE

```

Since the Universal Login serves the Login page for all of your applications, hardcoding the callback URL in the Universal Login is generally not a good practice, because your Login page would not be able to dynamically redirect your authenticated users to any other URL’s on other Auth0 applications besides the one you defined.

Therefore, I recommend that you leave the `redirectUrl` defined as `config.callbackURL` to dynamically redirect your users to the correct callback URL defined in your application.

Please let me know if this resolves your 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:** [December 6, 2021, 11:00pm UTC](https://community.auth0.com/t/auth0-passwordless-login-by-email-link-is-failed/70749/4 "2021-12-06T23:00:20Z")

</div>

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