package com.github.nullptroma.wallenc.app.di.modules.auth

import com.github.nullptroma.wallenc.app.auth.YandexSignInService
import com.github.nullptroma.wallenc.vault.contract.RemoteVaultAuthenticator
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
abstract class YandexAuthModule {

    @Binds
    @Singleton
    abstract fun bindRemoteVaultAuthenticator(
        impl: YandexSignInService,
    ): RemoteVaultAuthenticator
}
