Effect CommunityEC
Effect Community3y ago
11 replies
runefh

Handling Failed HTTP Post with Token Refresh and Retry

Is there an idiomatic way of doing something after an effect fails, before retrying?
I'm trying to write an effect that does an HTTP post, which might get a NotAuthorizedError. In which case I want to run some code to refresh a token, and then retry it
Was this page helpful?