IMAP Error "Invalid Credentials" via GMail XOAUTH

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.

+4
source share
1 answer

Your problem may be due to the fact that your users have too many open connections to Gmail - a maximum of ten complaints are allowed before they are launched.

http://support.google.com/mail/bin/answer.py?hl=en&answer=97150

Gmail currently has a limit of 10 concurrent IMAP connections per account.

+1
source

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


All Articles