# Login is successful but can't get in due to "Unknown client"

**URL:** <https://community.auth0.com/t/login-is-successful-but-cant-get-in-due-to-unknown-client/103275>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [March 24, 2023, 5:46pm UTC](https://community.auth0.com/t/login-is-successful-but-cant-get-in-due-to-unknown-client/103275 "2023-03-24T17:46:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erok415](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erok415/32/45751_2.png) [@erok415](https://community.auth0.com/u/erok415)\
**Post date:** [March 24, 2023, 5:46pm UTC](https://community.auth0.com/t/login-is-successful-but-cant-get-in-due-to-unknown-client/103275/1 "2023-03-24T17:46:06Z")

</div>

Hi there,

Our application has been running fine for almost 2 years and all of a sudden Google Auth stopped working. Our website is a WordPress site with the Auth0 plugin. We have not made any changes to the Auth0 tenant, the plugin integration on WordPress, or the Google connection.

Now when I try to log in, I get this WordPress error “There was a problem with your login: Invalid state [error code: unknown]”

In the Auth0 logs, I can see that I received a “Success Login” message. However, in my logs, I noticed that there are a plethora of “Failed Login” messages even though nobody is trying to log in to the website. Is it possible that something is trying to brute force login to the site and Auth0 is not allowing me to log in anymore?

All of the failed logins are coming from a Firefox user\_agent and IP that’s unknown to us.  
{  
“date”: “2023-03-24T17:44:16.164Z”,  
“type”: “f”,  
“description”: “Unknown client: oncudk2vq36a6fcmccsot7spgznjgbh6”,  
“connection\_id”: “”,  
“ip”: “91.206.200.207”,  
“user\_agent”: “Firefox 109.0.0 / Windows 10.0.0”,

Your help is appreciated.

---

<div class="post-metadata">

**Author:** ![erok415](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erok415/32/45751_2.png) [@erok415](https://community.auth0.com/u/erok415)\
**Post date:** [March 24, 2023, 5:52pm UTC](https://community.auth0.com/t/login-is-successful-but-cant-get-in-due-to-unknown-client/103275/2 "2023-03-24T17:52:30Z")

</div>

I’ve turned on security “Attack Protection” and logging to see if that helps. I’m still prohibited from logging in.

---

<div class="post-metadata">

**Author:** ![erok415](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erok415/32/45751_2.png) [@erok415](https://community.auth0.com/u/erok415)\
**Post date:** [March 28, 2023, 6:20pm UTC](https://community.auth0.com/t/login-is-successful-but-cant-get-in-due-to-unknown-client/103275/3 "2023-03-28T18:20:05Z")

</div>

The issue turned out to be that our WordPress theme was updated and it was not a custom theme and didn’t have a child theme connected to it. Which meant that an important function in the function.php file was removed along with any other customization.

The missing code that was needed was:

```auto
/**
 * Prefix state and nonce cookie names.
 *
 * @param string $cookie_name - Cookie name to modify.
 *
 * @return string
 */
function auth0_theme_hook_prefix_cookie_name($cookie_name)
{
  return 'STYXKEY_' . $cookie_name;
}
add_filter('auth0_state_cookie_name', 'auth0_theme_hook_prefix_cookie_name');
add_filter('auth0_nonce_cookie_name', 'auth0_theme_hook_prefix_cookie_name');

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 31, 2023, 1:33pm UTC](https://community.auth0.com/t/login-is-successful-but-cant-get-in-due-to-unknown-client/103275/4 "2023-03-31T13:33:38Z")

</div>

Thanks for sharing that with the rest of community!

---

<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:** [April 14, 2023, 1:34pm UTC](https://community.auth0.com/t/login-is-successful-but-cant-get-in-due-to-unknown-client/103275/5 "2023-04-14T13:34:31Z")

</div>

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