'Args:
hs (synapse.server.HomeServer):'

def __init__(self, hs):

    super(AuthHandler, self).__init__(hs)
    self.checkers = {LoginType.PASSWORD: self._check_password_auth, LoginType.RECAPTCHA: self._check_recaptcha, LoginType.EMAIL_IDENTITY: self._check_email_identity, LoginType.MSISDN: self._check_msisdn, LoginType.DUMMY: self._check_dummy_auth}
    self.bcrypt_rounds = hs.config.bcrypt_rounds
    self.sessions = ExpiringCache(cache_name='register_sessions', clock=hs.get_clock(), expiry_ms=self.SESSION_EXPIRE_MS, reset_expiry_on_get=True)
    account_handler = _AccountHandler(hs, check_user_exists=self.check_user_exists)
    self.password_providers = [module(config=config, account_handler=account_handler) for (module, config) in hs.config.password_providers]
    logger.info('Extra    password_providers:    %r', self.password_providers)
    self.hs = hs
    self.device_handler = hs.get_device_handler()
    self.macaroon_gen = hs.get_macaroon_generator()
