Email Delivery Fails with Error "The provided authorization grant is invalid, expired, or revoked"
This article describes an issue in which Sendgrid is configured as the SMTP provider, but emails are not being delivered. The following error message is seen in the tenant log:
The provided authorization grant is invalid, expired, or revoked.
- SMTP Provider
- Email Deliverability
This error seems to be returned by Sendgrid when Auth0 attempts to deliver the email using the API key provided. Sendgrid is rejecting the API key.
If this used to work previously, it is likely that the key is now revoked or expired.
Another cause could be that the API Key ID was copied instead of the Key value, in which case a new key needs to be generated and the value copied.
To solve this issue, create a new Sendgrid API key in case the previous one has been revoked or expired.