# Missing state cookie from login request

**URL:** <https://community.auth0.com/t/missing-state-cookie-from-login-request/112664>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [August 2, 2023, 8:13am UTC](https://community.auth0.com/t/missing-state-cookie-from-login-request/112664 "2023-08-02T08:13:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ionel.cristian.lupu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ionel.cristian.lupu/32/49523_2.png) [@ionel.cristian.lupu](https://community.auth0.com/u/ionel.cristian.lupu)\
**Post date:** [August 2, 2023, 8:13am UTC](https://community.auth0.com/t/missing-state-cookie-from-login-request/112664/1 "2023-08-02T08:13:37Z")

</div>

I started to get this error message when clicking the Login button:

```auto
CallbackHandlerError: Callback handler failed. CAUSE: Missing state cookie from login request (check login URL, callback URL and cookie config).

```

What is the “state” cookie and how can this fixed?

After more debugging I found this piece of code:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/3/43d041ac60dc85cdadc7e6cdaf424ad37ec08997.jpeg)

---

<div class="post-metadata">

**Author:** ![nelson2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nelson2/32/57047_2.png) [@nelson2](https://community.auth0.com/u/nelson2)\
**Post date:** [August 17, 2023, 8:14pm UTC](https://community.auth0.com/t/missing-state-cookie-from-login-request/112664/2 "2023-08-17T20:14:56Z")

</div>

Hello, does this happen to you when you try to build a Docker image?  
this could be related: [NextJS on Auth0 fails with "Missing state cookie from login request"](https://community.auth0.com/t/nextjs-on-auth0-fails-with-missing-state-cookie-from-login-request/102859)

---

<div class="post-metadata">

**Author:** ![ionel.cristian.lupu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ionel.cristian.lupu/32/49523_2.png) [@ionel.cristian.lupu](https://community.auth0.com/u/ionel.cristian.lupu)\
**Post date:** [August 18, 2023, 7:00pm UTC](https://community.auth0.com/t/missing-state-cookie-from-login-request/112664/3 "2023-08-18T19:00:06Z")

</div>

I honestly don’t know what I did to fix this because it was more than 2 weeks ago.

PS: not sure how to close this issue

---

<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:** [September 1, 2023, 7:00pm UTC](https://community.auth0.com/t/missing-state-cookie-from-login-request/112664/4 "2023-09-01T19:00:58Z")

</div>

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