# Checks.state argument is missing

**URL:** <https://community.auth0.com/t/checks-state-argument-is-missing/78955>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [February 26, 2022, 1:41am UTC](https://community.auth0.com/t/checks-state-argument-is-missing/78955 "2022-02-26T01:41:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![temurbakhriddinov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/temurbakhriddinov/32/22631_2.png) [@temurbakhriddinov](https://community.auth0.com/u/temurbakhriddinov)\
**Post date:** [February 26, 2022, 1:41am UTC](https://community.auth0.com/t/checks-state-argument-is-missing/78955/1 "2022-02-26T01:41:32Z")

</div>

I get check state arg is missing when trying to set up auth0 in local env.

nextjs, auth0.

Any solution to this.

---

<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:** [March 1, 2022, 5:54pm UTC](https://community.auth0.com/t/checks-state-argument-is-missing/78955/3 "2022-03-01T17:54:32Z")

</div>

Hi @temurbakhriddinov,

Welcome to the Auth0 Community!

Have you seen this thread?

> [@BadRequestError: checks.state argument is missing](https://community.auth0.com/t/badrequesterror-checks-state-argument-is-missing/42609/17):
>
> Same problem here as well, became noticeable once I tried adding an API with authentication protected routes as well, the login button throws the error.

---

<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:** [April 22, 2022, 12:06am UTC](https://community.auth0.com/t/checks-state-argument-is-missing/78955/4 "2022-04-22T00:06:39Z")

</div>


