Title: Error: Invalid Grant
Last modified: June 21, 2021

---

# Error: Invalid Grant

 *  Resolved [cazwp](https://wordpress.org/support/users/cazwp/)
 * (@cazwp)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-invalid-grant/)
 * {
    “error”: “invalid_grant”, “error_description”: “Token has been expired or 
   revoked.” }
 * I created the api/setup on the site just before the weekend. Have not used this
   before. After ~100 hours of uninterrupted service, this morning at 11:25am est
   I received this message. Prior to that our email log had zero errors, after this,
   all emails in error log had an error.
 * I just deleted the old api project and started a new one with no problems, we
   have well over 100 emails sent out by our site some days.
 * I wondered if its a GSuite issue of revoking the credentials but I didn’t look
   before creating this new one. I will relay back again after this week if this
   happens again. This next time I should be able to see more and send the data.
 * Apologies for the lack of info, I suspect I will be updating this thread later
   when/if this happens again with better details.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-invalid-grant%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-invalid-grant/#post-14581067)
 * Hi [@cazwp](https://wordpress.org/support/users/cazwp/),
 * Thanks for your post. Unfortunately the error you are getting is due to the token
   being revoked by Google (or at least on their side). Unfortunately there is nothing
   the plugin can do about that, as it simply cannot connect to the Gmail API with
   a revoked token.
 * Please do keep us updated.
 * Kind Regards,
    Tim
 *  Thread Starter [cazwp](https://wordpress.org/support/users/cazwp/)
 * (@cazwp)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-invalid-grant/#post-14585328)
 * Oh wow, thank you very much for the quick response! And that makes sense, I will
   amend this thread when I learn more. I searched on this support forum and didn’t
   find anything so maybe it will help other users in the future as well.
 * Grateful,
    Lucas
 *  Thread Starter [cazwp](https://wordpress.org/support/users/cazwp/)
 * (@cazwp)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-invalid-grant/#post-14592087)
 * After doing a little digging, I found a few reasons why this could happen. [This article](https://blog.timekit.io/google-oauth-invalid-grant-nightmare-and-how-to-fix-it-9f4efaf1da35)
   helps explain about a dozen possible causes.
 * Within other SMTP plugins there are similar questions being asked so this is 
   a common-ish issue from what I can find.
 * I’m pretty sure our issue was in the original email holder changing their global
   google password.
 * I will follow up in a week or two after I’ve run this a bit longer and can validate
   that is what happened.
 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-invalid-grant/#post-14592194)
 * Hi Lucas,
 * Great article! Thanks for sharing that.
 * Kind Regards,
    Tim
 *  [shatas](https://wordpress.org/support/users/shatas/)
 * (@shatas)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-invalid-grant/#post-14653950)
 * Sorry but I have the same problem and it is not related to a changed password.
   That also provides the same problem but my client hasn’t changed his password
   in a while and still after about a week I have to redo the permission of google
   or I get the message of “Token has been expired or revoked.”
 * Can you please help with this, I have seen multiple people with the same issue
 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-invalid-grant/#post-14657677)
 * Hi [@shatas](https://wordpress.org/support/users/shatas/),
 * The “Token has been expired or revoked.” is an issue on Google’s side – not Post
   SMTP.
 * Please read the article shared by [@cazwp](https://wordpress.org/support/users/cazwp/)–
   [https://blog.timekit.io/google-oauth-invalid-grant-nightmare-and-how-to-fix-it-9f4efaf1da35](https://blog.timekit.io/google-oauth-invalid-grant-nightmare-and-how-to-fix-it-9f4efaf1da35)
 * Kind Regarsd,
    Tim

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

The topic ‘Error: Invalid Grant’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Tim](https://wordpress.org/support/users/tneville/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/error-invalid-grant/#post-14657677)
 * Status: resolved