Magic Link Code error

Hi

I am using Magic Link / E-mail passwordless login and everything is working well when I use multiple gmail accounts in testing.

I am initialising Auth0 as follows (I had to add useCookiesForTransactions={true} to actual authenticate the user when they clicked on the link in the email, otherwise I had to click on the Login button again to be authenticated):

  <Auth0Provider
    domain="dev-redacted.eu.auth0.com"
    clientId="Redacted"
    redirectUri={window.location.origin}
    scope="read:current_user update:current_user_metadata"
    useCookiesForTransactions={true}
    >

But when I use a different email domain - @nhs.net, then the email is delivered and I click on the link but I get the following error:

http://localhost:3000/?error=unauthorized&error_description=Wrong%20email%20or%20verification%20code.&state=alJmZ20tN016Sk9qSmlhb19VdFZlQ2M4U1R1T2hkNHZJTW1nN1JkbHZnbg%3D%3D

I’ve seen similar posts in the past but they don’t appear to apply to my case.

Why would this be happening?

I’ve checked the logs and the email is correct so perhaps the code is incorrect, but why would it be working for gmail accounts but failing for another domain?

Thank you for your help