Passwordless with link + Universal popup issue

I have an issue with passwordless authentication (magic link) in combination with universal login in popup mode.
If I don’t use the popup mode, the passwordless authentication works correctly.

However, when I use passwordless mode, when clicking the email, the browser gets stuck here:

https://…us.auth0.com/authorize/resume?state=…
With this issue:
Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘http://localhost:3000’) does not match the recipient window’s origin (‘https://…us.auth0.com’).

This is my react configuration (I am using the sample SPA application that Auth0 provided):

const providerConfig = {
domain: config.domain,
redirect: false,
clientId: config.clientId,
useRefreshTokens: true,
cacheLocation: “localstorage”,
onRedirectCallback,
useCookiesForTransactions: true,
authorizationParams: {
redirect: false,
redirect_uri: http://localhost:3000,
scope: “openid profile email offline_access”,
…(config.audience ? { audience: config.audience } : null),
},
};

When I see auth0 logs, I can actually see that the login succeed (Success Login) but I then it does not exchange the token (Success Exchange is not triggered)