Title: &#8220;Authorization code doesn&#8217;t exist or is invalid for the client&#8221; Error
Last modified: August 15, 2019

---

# “Authorization code doesn’t exist or is invalid for the client” Error

 *  [manuaguirre](https://wordpress.org/support/users/manuaguirre/)
 * (@manuaguirre)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/authorization-code-doesnt-exist-or-is-invalid-for-the-client-error/)
 * When using WP OAuth Server on the server page and Simple Single Sign On on the
   client page I encounter this “Authorization code doesn’t exist or is invalid 
   for the client” error consistently after the following steps:
    1. Sign in on 
   server page 2. Use the single sign on button on the client login page (the account
   is logged in fine at this point) 3. Logout of the client page 4. Use the single
   sign on button on the client login page again and the “Authorization code doesn’t
   exist or is invalid for the client” appears.
 * Not sure if this is relevant but I’ve looked through the code and it seems the
   _oauth_authorization_codes table is supposed to get populated with the authorization
   proper data and it does but the row seems to get instantly deleted.
 * Is this an error I’m not accounting for correctly or how can I go about fixing
   this?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/authorization-code-doesnt-exist-or-is-invalid-for-the-client-error/#post-11971363)
 * Sorry for the delay. I am going to look into this for the Single Sign On client
   plugin with WP OAuth Server.
 * Thank you for reporting this and I will get back to you after some testing.

Viewing 1 replies (of 1 total)

The topic ‘“Authorization code doesn’t exist or is invalid for the client” Error’
is closed to new replies.

 * ![](https://ps.w.org/oauth2-provider/assets/icon-256x256.gif?rev=2603051)
 * [WP OAuth Server (OAuth Authentication)](https://wordpress.org/plugins/oauth2-provider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/oauth2-provider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/oauth2-provider/)
 * [Active Topics](https://wordpress.org/support/plugin/oauth2-provider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oauth2-provider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oauth2-provider/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/authorization-code-doesnt-exist-or-is-invalid-for-the-client-error/#post-11971363)
 * Status: not resolved