Skip to content

Commit

Permalink
Move our interceptors at the top of the chain
Browse files Browse the repository at this point in the history
This allows them to receive all emissions without them potentially being
filtered by interceptors placed higher up which may decide to simply not
let a response proceed down to the lower interceptors
  • Loading branch information
StylianosGakis committed Aug 22, 2024
1 parent c2c7277 commit 0e99875
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ private val networkModule = module {
ApolloClient
.Builder()
.okHttpClient(get<OkHttpClient>())
.normalizedCache(get<NormalizedCacheFactory>())
.addInterceptor(LoggingInterceptor())
.addInterceptor(LogoutOnUnauthenticatedInterceptor(get<AuthTokenService>()))
.normalizedCache(get<NormalizedCacheFactory>())
}
single<ApolloClient> {
get<ApolloClient.Builder>()
Expand Down

0 comments on commit 0e99875

Please sign in to comment.