Hi
@ManishKathuria1,
When you say changing the JWT expiry "did not work as well" do you mean it didn't work at all, or it worked sometimes - not all the time? Unfortunately, the GMail REST API doesn't support the use of service accounts which is really what you need here for working across multiple user instances. Due to how .NET garbage collection works and the fact that BP doesn't cleanup objects until the process terminates I don't think there's much that can be done with the Web API feature.
There may be some other options. One option would be to build an integration using the GMail .NET package (available via Nuget). That should give you greater control over what's being done with the authentication. You can read ore about this here:
https://developers.google.com/gmail/api/quickstart/dotnetThe other option would be to try connecting to GMail using IMAP/SMTP. There's a free IMAP VBO on the DX from Auro. It only has one review, and it's not great, but it might put you on the path to success. You can find it here:
https://digitalexchange.blueprism.com/dx/entry/3338/solution/auro-imap-vboCheers,