# There was a problem with your log in: Invalid state \[error code: unknown\]

**URL:** <https://community.auth0.com/t/there-was-a-problem-with-your-log-in-invalid-state-error-code-unknown/148401>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [October 2, 2024, 1:28pm UTC](https://community.auth0.com/t/there-was-a-problem-with-your-log-in-invalid-state-error-code-unknown/148401 "2024-10-02T13:28:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hirofumi\_kuruma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hirofumi_kuruma/32/61023_2.png) [@hirofumi\_kuruma](https://community.auth0.com/u/hirofumi_kuruma)\
**Post date:** [October 2, 2024, 1:28pm UTC](https://community.auth0.com/t/there-was-a-problem-with-your-log-in-invalid-state-error-code-unknown/148401/1 "2024-10-02T13:28:32Z")

</div>

Hi,

I getting an error “Invalid state [error code: unknown]” in my wordpress.

I installed “Login by Auth0” plugin on the WordPress site. The use case is as follow:

- login on the WordPress site
- redirected to Auth0 universal login
- authenticated and redirected back to WordPress

but when I back to WordPress, it comes up the error: Invalid state [error code: unknown]  
I check logs and it says “Success Login”

I get the har file. and find something strange is that it says it is Invalid state after “auth0\_state=deleted” is set.

I am not sure if the process is correct…

What I want to do is use a SAML connection and authenticate in the Database Connection.  
In the logs, it seems it works since i see it is “Success Login”

is there somewhere I gone wrong? 🫥

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [April 22, 2025, 3:37pm UTC](https://community.auth0.com/t/there-was-a-problem-with-your-log-in-invalid-state-error-code-unknown/148401/3 "2025-04-22T15:37:57Z")

</div>

Hi @hirofumi_kuruma

Welcome to the Auth0 Community!

I am sorry about the late reply to your inquiry!

The `Invalid State` might be caused due to several reasons:

- You might be still using the v4 and you might need to upgrade to the v5.
- You might need to `email_verified = true`
- URL is being cached on the server included inside **Allowed Callback URLs**
- Other issues mentioned in our documentation about [troubleshooting Wordpress issues](https://auth0.com/docs/customize/integrations/cms/wordpress-plugin/troubleshoot-wordpress-plugin-invalid-state-errors)

Let me know if you have any other questions!

Kind Regards,  
Nik

---

<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:** [May 6, 2025, 3:38pm UTC](https://community.auth0.com/t/there-was-a-problem-with-your-log-in-invalid-state-error-code-unknown/148401/4 "2025-05-06T15:38:26Z")

</div>

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