# Magic link invalid state

**URL:** <https://community.auth0.com/t/magic-link-invalid-state/51197>\
**Category:** Get Help\
**Tags:** state, passwordless, magic-link\
**Created:** [October 7, 2020, 9:59pm UTC](https://community.auth0.com/t/magic-link-invalid-state/51197 "2020-10-07T21:59:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lerman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lerman/32/12714_2.png) [@lerman](https://community.auth0.com/u/lerman)\
**Post date:** [October 7, 2020, 9:59pm UTC](https://community.auth0.com/t/magic-link-invalid-state/51197/1 "2020-10-07T21:59:33Z")

</div>

Hi,

I’m using spa-js, universal login with social and passwordless magic link connections.  
Everything works fine with the social logins, but when using the magic link I get ‘invalid state’ error from handleRedirectCallback. (opening the link in the same browser - chrome)

What can be the problem?  
I tried with and without passing appState both gave the same error.

BTW, with code instead of a link, it works fine. (but I need a link)

Thanks.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 13, 2020, 6:53pm UTC](https://community.auth0.com/t/magic-link-invalid-state/51197/3 "2020-10-13T18:53:25Z")

</div>

Would you be able to record a HAR of the transaction and send it to me in a DM?

> **[Generate and Analyze HAR Files](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files)**
>
> Learn how to troubleshoot with HAR files and steps to generate a HAR file.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 3, 2020, 7:21pm UTC](https://community.auth0.com/t/magic-link-invalid-state/51197/4 "2020-11-03T19:21:16Z")

</div>


