Title: Problems with grant acces
Last modified: May 29, 2018

---

# Problems with grant acces

 *  Resolved [josedgal](https://wordpress.org/support/users/josedgal/)
 * (@josedgal)
 * [8 years ago](https://wordpress.org/support/topic/problems-with-grant-acces/)
 * Versions:
    WordPress: 4.9.6 WordPress MS: No PHP: 7.1.16 WP Mail SMTP: 1.2.5
 * Params:
    Mailer: gmail Constants: No Client ID/Secret: Yes Auth Code: Yes Access
   Token: Yes
 * Server:
    OpenSSL: Yes PHP.allow_url_fopen: Yes PHP.stream_socket_client(): Yes
   PHP.fsockopen(): Yes PHP.curl_version(): Yes
 * Debug:
    Error while sending via Gmail mailer: { “error”: “invalid_grant”, “error_description”:“
   Token has been expired or revoked.” }
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblems-with-grant-acces%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [samuell306](https://wordpress.org/support/users/samuell306/)
 * (@samuell306)
 * [8 years ago](https://wordpress.org/support/topic/problems-with-grant-acces/#post-10399285)
 * Tbm gostaria de saber o motivo desse erro e como arruma-lo!
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [8 years ago](https://wordpress.org/support/topic/problems-with-grant-acces/#post-10399980)
 * [@josedgal](https://wordpress.org/support/users/josedgal/), [@samuell306](https://wordpress.org/support/users/samuell306/)
 * You need to regenerate tokens. Go to the console.developers.google.com > Credentials
   page. Click on the Edit screen for your credentials and Reset secret after that.
   Here is a button you need to click: [http://take.ms/2EQIn](http://take.ms/2EQIn)
 *  [Paul Groth](https://wordpress.org/support/users/paulmrg/)
 * (@paulmrg)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/problems-with-grant-acces/#post-10431939)
 * This just happened to us. Can you tell me what caused it? I checked the secret
   between Google and the plugin and they were identical so it should have been 
   working. Google wasn’t reporting any issues with the API either.
 * Regenerating the secret and going through the auth steps worked, but for how 
   long? It was all tested and working before, then made live and handed over to
   the client. The day after… this happened.
 * It is very critical to make sure it works consistently for our client. If we 
   know what the issue is, we might be able to avoid it happening again.
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/problems-with-grant-acces/#post-10432283)
 * I don’t know the internal Google kitchen. What I know is that Secret Key (and
   all tokens that were generated using that key) is invalidated when you change
   the password or enable 2FA.
 * Also, in the future upcoming WP Mail SMTP 1.3.0 we will have an admin-area notification
   system that will notify site admin about an error with email delivery.
 *  [Paul Groth](https://wordpress.org/support/users/paulmrg/)
 * (@paulmrg)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/problems-with-grant-acces/#post-10434840)
 * We didn’t change the password or enable 2FA, so there must have been another 
   thing that happened. It would be good to know what it was for future reference
   though.

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

The topic ‘Problems with grant acces’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

## Tags

 * [Grant Access](https://wordpress.org/support/topic-tag/grant-access/)
 * [wpmail](https://wordpress.org/support/topic-tag/wpmail/)

 * 5 replies
 * 4 participants
 * Last reply from: [Paul Groth](https://wordpress.org/support/users/paulmrg/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/problems-with-grant-acces/#post-10434840)
 * Status: resolved