-
I want to intercept every response and if the http status is 401 I have to authenticate first then resend the request.
|
Beta Was this translation helpful? Give feedback.
Answered by
lbensaad
Nov 11, 2022
Replies: 1 comment
-
I solved it with this interceptor
But the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lbensaad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved it with this interceptor
But the
connect-go
server has to return the error with:connect.NewError(connect.CodeUnauthenticated, err)