public class AuthInterceptor
extends java.lang.Object
implements okhttp3.Interceptor
Constructor and Description |
---|
AuthInterceptor(android.content.Context context)
Constructor
|
Modifier and Type | Method and Description |
---|---|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain)
Interceptor for set authorization bearer for using JWT
|
public AuthInterceptor(android.content.Context context)
context
- application contextpublic okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws java.io.IOException
intercept
in interface okhttp3.Interceptor
chain
- data to evaluatejava.io.IOException