Title: Loses credentials
Last modified: August 30, 2016

---

# Loses credentials

 *  Resolved [zaneo](https://wordpress.org/support/users/zaneo/)
 * (@zaneo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/loses-credentials/)
 * I’m using YouTube for WordPress 2.0.4.5 in a multisite environment. I’ve configured
   the Google API and setup all credetials with a Google Apps account.
    I can configure
   YouTube for WordPress and it works, but it only works for a brief time ~24 hours
   before the authentication breaks. Sometimes I can re-authenticate, but usually
   I have to reset the plugin completely.
 * Oh No! Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant”,“
   error_description” : “Token has been revoked.” }’. Double check that you have
   entered your client ID and client secret keys correctly.
 * If the error persits please open a support ticket with the YouTube for WordPress
   support team and reference the following error number: Error #400
 * The error above is what I see.
 * [https://wordpress.org/plugins/wp2yt-uploader/](https://wordpress.org/plugins/wp2yt-uploader/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [zaneo](https://wordpress.org/support/users/zaneo/)
 * (@zaneo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/loses-credentials/#post-6786796)
 * Seems like it may have something to do with the multisite environment. I’m using
   the same Google account to activate yt4wp in multiple sites. I activated in just
   one site and it seems to be working.
    Why is it failing when activated on several
   sites?
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/loses-credentials/#post-6786883)
 * I believe that multi site environments encounter an issue at the moment. The 
   refresh token needs to be retrieved one time, and then shared across all of your
   sites. You can go to options.php in the dashboard and copy the refresh token 
   to each of your other sites in the network.
 * I am currently rewriting this plugin, and will take this issue into account moving
   forward.
 * Evan
 *  Thread Starter [zaneo](https://wordpress.org/support/users/zaneo/)
 * (@zaneo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/loses-credentials/#post-6786884)
 * Thank you for the workaround. That appears to be working.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Loses credentials’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp2yt-uploader_d8e1bb.svg)
 * [YouTube for WordPress](https://wordpress.org/plugins/wp2yt-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp2yt-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp2yt-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/wp2yt-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp2yt-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp2yt-uploader/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [zaneo](https://wordpress.org/support/users/zaneo/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/loses-credentials/#post-6786884)
 * Status: resolved