Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I'm trying to create a middleware that retries a request when it returns a 401 status code. I've already created a functional version that refreshes tokens and can retry GET requests. However, I'm unable to access the POST request body within the onResponse function. My goal is to update a header and retry the request. Is there a built-in way to achieve this? 🤔

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.