jeremyephron / simplegmail

A simple Gmail API client for applications in Python
MIT License
352 stars 74 forks source link

Google Oauth Horrific token refresh #121

Open Webrow opened 3 weeks ago

Webrow commented 3 weeks ago

Thanks for this library first of all.

When following the steps at some point you have to pick if your project is internal or external. Internal is only possible if you have a gsuite account. External requires you to apply for "publication if your app", you can invite users to join, but after 7 days their scopes are revoked. I see nobody else having these issues, anyone want to tell me how they worked around this issue?

In my case I am just parsing some mail, and making some API calls. I do these every minute (also running the Gmail() constructor every minute. After 7 days it challenges me to do a oauth login again. But since this is running on a server, I have to copy over the code, do the auth on my machine, copy back the new token. Its quite handsome.

carlosace3 commented 2 weeks ago

I have the same problem. I'm tempted to try using the actual Gmail API from Google, but then I'd have to change all my code.

Cronista commented 2 weeks ago

I have the same problem. It is compounded by ChromeDriver not being able to reach a file at googlechromelabs.github.io. Don't know if related.