I'm trying to use an InterceptorContract to intercept my calls and check whether my refreshtoken has expired.
I would like to handle a 401 by requesting a new token and retrying the previous request, however I can't figure out how to implement this using the ExpiredTokenRetryPolicy/http_interceptor. Does anyone have a suggestion or an example on how to implement this?
I looked at the example in the http_interceptor package but that didn't really make it clear.