okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

Problem about adding token to header by using Interceptor

Open cauchywei opened this issue 10 years ago • 2 comments

Hi guys, I met a trouble when I want to add token to header in interceptor. The token is variable according to the login status, so I want to dynamically get token for every requests in the interceptor. But I found that Are always invoked once in wiki, it may means I must manually add header for every request (I'm using Retrofit2 now )?

cauchywei avatar Jan 28 '16 08:01 cauchywei

Please ask your question on Stack Overflow. This tracker is for bug reports & feature requests only.

swankjesse avatar Jan 28 '16 09:01 swankjesse

so sorry for that

cauchywei avatar Jan 28 '16 09:01 cauchywei