Skip to content

Commit

Permalink
[feature/#1029] RefreshApi 모듈 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jan 23, 2025
1 parent 62f830c commit dba67cd
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
import okhttp3.Interceptor
import org.sopt.official.common.di.AppRetrofit
import org.sopt.official.common.di.Auth
import org.sopt.official.common.di.AuthRetrofit
import org.sopt.official.network.interceptor.AuthInterceptor
import org.sopt.official.network.service.RefreshApi
import org.sopt.official.network.service.RefreshService
import retrofit2.Retrofit
import javax.inject.Singleton

@InstallIn(SingletonComponent::class)
@Module
Expand All @@ -44,6 +46,10 @@ object AuthModule {
@Singleton
fun provideNoneAuthService(@AppRetrofit(false) retrofit: Retrofit): RefreshService = retrofit.create(RefreshService::class.java)

@Provides
@Singleton
fun provideRefreshApi(@AuthRetrofit retrofit: Retrofit): RefreshApi = retrofit.create(RefreshApi::class.java)

@Module
@InstallIn(SingletonComponent::class)
interface Binder {
Expand Down

0 comments on commit dba67cd

Please sign in to comment.