arielzusya
Your OAuth2 tokens are expired. This is an old bug where we didn’t update the Refresh Token when refreshing the Access Token and when the Refresh Token expires (30-90 days) the tokens will stop auto-renewing. We fixed this in v1.17.3 and in the latest build of the OAuth2 plugin.
To remedy this you must first upgrade to v1.17.3, install the latest build of the OAuth2 plugin, and restart Apache/IIS and PHP-FPM (if you’re running it) to clear any file cache. Next, login to osTicket in an Incognito/Private/InPrivate window (this isvery important to avoid authorizing the wrong account). Now go to Admin Panel > Emails > Emails, click the email, click the Remote Mailbox tab, click Config, and click Submit. This should bring you to Microsoft to login where you will login as the email you are configuring in osTicket. Click Accept if prompted for consent. Now you should have new tokens that should auto-renew until the Client Secret expires.
Cheers.