Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail IMAP OAuth2 returns error code 400

When trying to connect to the Google IMAP service using the XOAUTH2 mechanism (https://developers.google.com/google-apps/gmail/xoauth2_protocol), I sometimes receive the following error response:

{"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}

I was wondering if anyone knew what exactly that status 400 was ...

like image 760
Dominik Avatar asked Nov 13 '22 17:11

Dominik


1 Answers

Error message seems to happen when you use an expired access token.

like image 83
Dominik Avatar answered Dec 18 '22 16:12

Dominik