# Issue with Passwordless Magic link authentication using embedded login

**URL:** <https://community.auth0.com/t/issue-with-passwordless-magic-link-authentication-using-embedded-login/55494>\
**Category:** Get Help\
**Tags:** react-native, passwordless, magic-link\
**Created:** [December 30, 2020, 10:41am UTC](https://community.auth0.com/t/issue-with-passwordless-magic-link-authentication-using-embedded-login/55494 "2020-12-30T10:41:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oded.magger](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oded.magger/32/26240_2.png) [@oded.magger](https://community.auth0.com/u/oded.magger)\
**Post date:** [December 30, 2020, 10:41am UTC](https://community.auth0.com/t/issue-with-passwordless-magic-link-authentication-using-embedded-login/55494/1 "2020-12-30T10:41:40Z")

</div>

My **React-Native** application uses Auth0 for authentication.

We chose to go with **Embedded login** , are now trying to implement signing in with **magic link.**

(We previously succeeded in implementing Sign in with Google and Passwordless email code flows)

The **problem** is, that when I press the link provided in the email (e.g. on a Safar browser in an iOS iPhone 11 simulator), instead of opening the app, the browser redirects to what appears to be a universal login webpage.

Instead, I would expect the app to open, and my async call to `passwordless/start` to resolve the promise.

What am I doing wrong?

My code (note: same behavior happens when I test the connection on the Auth0 dashboard)

```auto
import Auth0 from "react-native-auth0";

    const auth0 = new Auth0({
      domain: *<MY AUTH0 SUBDOMAIN>*,
      clientId: *<MY CLIENT ID>*,
    });

const result = await auth0.auth.passwordlessWithEmail({
      email: 'oded.magger+example@empathy.com',
      send: 'link',
      authParams: {
        scope: "openid profile email offline_access",
      },
    });

```

The generated magic link:

```auto
https://<MY AUTH0 SUBDOMAIN>.auth0.com/passwordless/
verify_redirect?scope=openid%20profile%20email%20offline_access&response_type=token
&redirect_uri=<APP BUNDLE ID>%3A%2F%2F<MY AUTH0 DOMAIN>%2Fios%2F<APP BUNDLE ID>%2Fcallback
&audience=doc-server&verification_code=766032&connection=email
&client_id=<MY CLIENT ID>&email=oded.magger%2Bexample%40empathy.com

```

The webpage I get:

 ![Screen Shot 2020-12-30 at 12.15.44](https://global.discourse-cdn.com/auth0/original/3X/2/7/274e729f923d9ad582d76d41fbe90137eae51821.png)

---

<div class="post-metadata">

**Author:** ![oded.magger](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oded.magger/32/26240_2.png) [@oded.magger](https://community.auth0.com/u/oded.magger)\
**Post date:** [December 31, 2020, 12:48pm UTC](https://community.auth0.com/t/issue-with-passwordless-magic-link-authentication-using-embedded-login/55494/2 "2020-12-31T12:48:08Z")

</div>

The solution was changing the Universal Login from ‘new’ to ‘classic’, in the _Auth0 dashboard → Universal Login → Settings_ .

It is weird that the Universal Login settings impact the flow since I’m using embedded log in, but it is what it is.

Hope this helps someone else in the future!

---

<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:** [January 15, 2021, 12:48pm UTC](https://community.auth0.com/t/issue-with-passwordless-magic-link-authentication-using-embedded-login/55494/3 "2021-01-15T12:48:14Z")

</div>

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