I am using the Gmail IMAP API with (deprecated) OAuth 1.0 in my application. I actually have hundreds of users using the same application, and most of them use services without problems. However, there are some accounts that constantly receive the "Invalid credentials" error when trying to connect. The problem does not necessarily appear immediately, there are many cases that the problem occurs after a while. I strongly do not think that this is not connected with incorrect tokens, because tokens have been regenerated several times. In addition, they use the same code base with other accounts, I think it should also work for them.
source share