I'm looking at the the documentation for gmail api and trying to find out if there's a way to keep a long term token to monitor someone’s inbox? this is for an internal CRM system that has hundreds of employees. What we want to do is periodically look at the inbox and try to match any communication with contacts in the CRM.
I've already implemented authentication via OAuth2, but the token we get back doesn't seem reliable to keep long term.