• Hello everyone, this is happening to me on a website designed for my client.

    It was all connected and working properly, I went in to check and I found this error

    Mailer: Gmail
    {
      "error": "invalid_grant",
      "error_description": "Bad Request"
    }

    I tried to revoke the access and repeat it but from that moment it does not allow me to access.

    The consent screen opens correctly, warns me that the app is not secure, I proceed anyway, I consent to send / receive / read emails and ….. return to the home page of the site without consent!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @webepc,

    The Invalid Grant error usually indicates that there are permission issues due to the Secret Key (and all tokens that were generated using that key) being invalidated. This could happen when the Gmail password is changed or when 2FA is enabled.

    To resolve this you’ll need to regenerate tokens by going to the console.developers.google.com > Credentials page. Click on the Edit screen for your credentials and Reset Secret after that. Here’s the button you need to click: http://take.ms/2EQIn

    Alternatively, you can go through all the steps in our setup tutorial again.

    I hope this helps!

    I had already done what was indicated but didn’t want to know how to work with Google!
    I “solved” using SendGrid instead

    Hi @webepc,

    Glad to know you sorted out switching the mailer option. The invalid grant error on Gmail occurs usually when you change your password or enable 2FA.

    Have a good one 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Authorization – consent is not given’ is closed to new replies.