How to Check if Access Token is Expired or Not

How to Check if Access Token is Expired or Not

I am using my Refresh Token to generate an access token (which is valid for 60 min). I am then storing the access token in an organization variable that I can reference in subsequent scripts. When subsequent scripts run, is there a way for me to first check if that Access token in this organization variable has already expired? If it is expired, then I'd want to create a new access token and update that global/organization variable.

If I have an access token, how can I quickly check if it is expired or not via deluge?