Replies: 1 comment 1 reply
-
Hey, I'm afraid it's not natively supported at the moment.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this request flow in a non-htmx application, and wonder if it is possible to implement with htmx too.
Requests with an expired access token return a 401. I'd like to handle this 401 transparently for the user, refresh the user's access token and retry the original request - without showing an error for the initial request.
I've looked at the htmx events like
htmx:responseError
that would allow to retry requests as described here: #1746 (comment)But I want htmx to skip error handling for the first 401 response and keep showing the loading state. Is that somehow possible?
Beta Was this translation helpful? Give feedback.
All reactions