# Getting invalid state on redirect

**URL:** <https://community.auth0.com/t/getting-invalid-state-on-redirect/110901>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [July 10, 2023, 4:34pm UTC](https://community.auth0.com/t/getting-invalid-state-on-redirect/110901 "2023-07-10T16:34:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [July 10, 2023, 10:19pm UTC](https://community.auth0.com/t/getting-invalid-state-on-redirect/110901/3 "2023-07-10T22:19:38Z")

</div>

Hi @Anupamc,

Thanks for reaching out to the Auth0 Community!

An invalid state error happens when the returned state value does not match the state value that was passed in the initial login request. This is explained in more detail in [this related post](https://community.auth0.com/t/invalid-state-on-reload-auth0-callback-url-using-auth0-spa-js-and-angular-8/36469/10).

Could you please confirm if the state value passed in the login request matches the state value in the response?

---

_[View the full topic](https://community.auth0.com/t/getting-invalid-state-on-redirect/110901)._
