Without writing a whole app to deploy on Zapier is there a way I can do Oauth 2.0 token requests assuming timeouts and refreshing tokens.
I'm envisioning the workflow to be something like this:
Trigger: Simple webhook (called on a schedule or from another Zap as needed to get information)
Step 1: Get the token from Storage app
Step 2: Run a webhook to test if the token is valid still
Path A: - if token valid Then do the actual webhook call to get the information needed.
Path B: - if token expired or error on the first step
Path B, Step 1: make a call to refresh the token
Path B, Step 2: store the new token in storage
Path B, Step 3: Call the webhook to re-trigger this zap (yikes, possibility for non ending loops here)
What am I missing here? Is this doable?