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

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? :dotted_line_face:

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

Let me know if you have any other questions!

Kind Regards,
Nik