# Checks.state argument is missing inside IFrame

**URL:** <https://community.auth0.com/t/checks-state-argument-is-missing-inside-iframe/71685>\
**Category:** Get Help\
**Created:** [October 20, 2021, 9:32pm UTC](https://community.auth0.com/t/checks-state-argument-is-missing-inside-iframe/71685 "2021-10-20T21:32:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.machado](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gabriel.machado/32/31491_2.png) [@gabriel.machado](https://community.auth0.com/u/gabriel.machado)\
**Post date:** [October 20, 2021, 9:32pm UTC](https://community.auth0.com/t/checks-state-argument-is-missing-inside-iframe/71685/1 "2021-10-20T21:32:40Z")

</div>

I am building an application with Next Js + Auth0 but am facing the error `Checks.state argument is missing` when i try to login inside an IFrame. I checked some similar errors where env variables were misconfigured, but i think this is not my case since the authentication flow works fine in outside IFrame.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/7/37f7ff45cb2a0cbcdadcbebbb58ce5e63f861b04.png)

I tried to change cookie configuration defining `secure` and `httpOnly` as `false` with `initAuth0`

ps: i already run an application built with Create React App + React Auth0 and this error never happened before

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 29, 2021, 10:45pm UTC](https://community.auth0.com/t/checks-state-argument-is-missing-inside-iframe/71685/3 "2021-10-29T22:45:36Z")

</div>

Hi @gabriel.machado,

Thanks for reaching out to the Auth0 Community.

I understand that you’ve encountered the `checks.state argument is missing` error.

First, could you please double-check that all of your environment variables are consistent with the values found in your Auth0 Application?

If the error persists, I recommend that you open a [GitHub Issue](https://github.com/auth0/nextjs-auth0/issues) to bring attention to your error.

Lastly, you may find some of the [related issues on GitHub](https://github.com/auth0/nextjs-auth0/issues?q=is%3Aissue+is%3Aclosed+checks.state+argument+is+missing) helpful.

Please let me know if you have any other questions or concerns.

Thank you.

---

<div class="post-metadata">

**Author:** ![gabriel.machado](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gabriel.machado/32/31491_2.png) [@gabriel.machado](https://community.auth0.com/u/gabriel.machado)\
**Post date:** [November 5, 2021, 12:46pm UTC](https://community.auth0.com/t/checks-state-argument-is-missing-inside-iframe/71685/4 "2021-11-05T12:46:51Z")

</div>

Hi @rueben.tiow ,

Thank for your reply. Yes, all my environment variables are correctly configured, everything works fine outside the IFrame.

I will open an issue in Github.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 5, 2021, 6:40pm UTC](https://community.auth0.com/t/checks-state-argument-is-missing-inside-iframe/71685/5 "2021-11-05T18:40:37Z")

</div>

Hi @gabriel.machado,

Thank you for your response.

That sounds great. I will close this Community Topic.

Please feel free to reach out again if you have any further questions or concerns.

Thank you.

---

<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:** [November 20, 2021, 6:40pm UTC](https://community.auth0.com/t/checks-state-argument-is-missing-inside-iframe/71685/6 "2021-11-20T18:40:41Z")

</div>

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