Hey everyone, first time posting here, I’ve tried out the User Consent Auth / Authorization Code Grant between Moveworks and Workday, functionally it is working well after user consented, but is there anyway to detect/test if a user consent expired/non-exists at the beginning of a plugin?
Problem Statement
If a user never consent previously or if token already expired, the first time calling a plugin will always fail (not yet consented / token expired). Immediately afterwards, User Consent Request will appear:

User can then proceed to consent, but the plugin already ended so user will have to manually retrigger the plugin after consented, and retype everything again.
Question
I need to make my plugin:
1) Check if user consent exist/valid
2) If false in 1) then show User Consent Request
3) Pause plugin execution (with timeout) until User Consent Auth completed
4) If timeout at 3) or Auth Failed at 3) then return false (so I won’t bother user with subsequent steps of plugin).
Any Moveworks-native method/API/solution to achieve these?
If not, then has anyone deployed User Consent Auth in production please share how you manage it?
Thanks!