package com.airlock.iam.authentication.infrastructure.factory;

import com.airlock.iam.base.api.infrastructure.plugin.ModuleForConfig;
import com.airlock.iam.flow.shared.application.configuration.oath.OathOtpActivationStepConfig;
import com.airlock.iam.flow.shared.domain.service.oath.ImmediateOathOtpPersistingService;
import com.airlock.iam.flow.shared.domain.service.oath.OathOtpPersistingService;
import com.airlock.iam.flow.shared.infrastructure.factory.MainOathOtpActivationStepModule;

@ModuleForConfig(OathOtpActivationStepConfig.class)
public final class AuthenticationOathOtpActivationStepModule extends MainOathOtpActivationStepModule {
   @Override
   protected void configure() {
      super.configure();
      this.bind(OathOtpPersistingService.class).to(ImmediateOathOtpPersistingService.class);
      this.expose(OathOtpPersistingService.class);
   }
}
