We are using OAuth 2.0 with Authorisation Grant in our Moveworks plugin integration. On first authorization, we successfully receive both an access token and a refresh token. However, the access token expires after 24 hours, and when users query the plugin after that, the plugin directly fails instead of prompting the user to re-authorize.
Expected behaviour :
When the access token expires, the plugin should use the refresh token to fetch a new access token silently. If that also fails (e.g., refresh token expired), it should prompt the user to re-authorize.
Current behaviour :
The plugin fails immediately on expired access token without asking users for re-authorization, resulting in poor user experience.
Request:
Could you please advise the best practice or configuration in Moveworks to handle access token expiration and ensure the plugin prompts users for reauthorization when necessary?
Thank you in advance for your help.

