package com.zaojiao.app.core.auth.di

import com.zaojiao.app.core.auth.data.LocalAuthData
import com.zaojiao.app.core.auth.data.RemoteAuthData
import com.zaojiao.app.core.auth.data.AuthRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object AuthModule {
    @Provides
    @Singleton
    fun provideTokenRepository(
        localAuthData: LocalAuthData,
        remoteTokenData: RemoteAuthData,
    ): AuthRepository {
        return AuthRepository(
            localAuthData = localAuthData,
            remoteTokenData = remoteTokenData,
        )
    }
}