File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
src/main/java/com/threegap/bitnagil/network/auth Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11plugins {
22 alias(libs.plugins.bitnagil.android.library)
3- alias(libs.plugins.bitnagil.android.hilt)
43 alias(libs.plugins.kotlin.serialization)
54}
65
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ import com.threegap.bitnagil.network.token.TokenProvider
44import kotlinx.coroutines.runBlocking
55import okhttp3.Interceptor
66import okhttp3.Response
7- import javax.inject.Inject
87
9- class AuthInterceptor @Inject constructor (
8+ class AuthInterceptor (
109 private val tokenProvider : TokenProvider ,
1110) : Interceptor {
1211 override fun intercept (chain : Interceptor .Chain ): Response {
Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ import okhttp3.Authenticator
55import okhttp3.Request
66import okhttp3.Response
77import okhttp3.Route
8- import javax.inject.Inject
98
10- class TokenAuthenticator @Inject constructor() : Authenticator {
9+ class TokenAuthenticator : Authenticator {
1110
1211 override fun authenticate (route : Route ? , response : Response ): Request ? {
1312 if (response.code != UNAUTHORIZED ) return null
You can’t perform that action at this time.
0 commit comments