Gmail IMAP OAuth2 returns 400 error code

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

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

I was wondering if anyone knows what exactly this 400 status was ...

+4
source share
1 answer

An error message appears when you use an expired token.

+1
source

Source: https://habr.com/ru/post/1447117/


All Articles