Docs Error Library Authentication Errors Error: Token Has Been Expired or Revoked

Error: Token Has Been Expired or Revoked

What Is Causing This Error?

The ‘token has been expired or revoked’ error description often appears when there’s an issue with the permissions granted to an external email application that’s trying to access your mailbox.

For example, if you’re using WordPress, you may see this error if your SMTP plugin doesn’t have the correct access permissions for your Outlook or Gmail account.

This error can also appear if you’ve changed your password on a mailer, such as Google or Outlook, that you’ve previously connected to send emails through your SMTP plugin.

We’ll show you how to fix this using WP Mail SMTP as an example.

Resolving the Error – Solution

To resolve this, you would need to reauthenticate WP Mail SMTP with your mailer.

Go to WP Mail SMTP » Settings and select the General tab. Next, scroll to the bottom of the page and click the Remove OAuth Connection button.

Once the page has reloaded, click Allow plugin to send emails using your Gmail account next.

This will open a login screen. Go ahead and log in to your account, and click Yes to the Microsoft permissions form if prompted.

That’s it! Now you know how to fix the ‘token has been expired or revoked’ error.

If you’d like to learn how to troubleshoot other common errors, check out the following docs: